Home Reference Source
import Api from './ui/api/api.js'
public class | source

Api

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

cache: *[]

public
public
Private Members
private

_log: *

Method Summary

Public Methods
public

delete(url: *, data: *, cb: *, cbErr: *)

public

get(url: *, cb: *, cbErr: *)

public

post(url: *, data: *, cb: *, cbErr: *)

public

put(url: *, data: *, cb: *, cbErr: *)

public

request(method: *, url: *, data: *, cbSuccess: *, cbError: *, doCache: *)

public

sendErrorReport(report: *, manualSend: boolean)

Public Constructors

public constructor() source

Public Members

public cache: *[] source

public lastErrorReport: * source

public maintenanceModeWarning: * source

Private Members

private _log: * source

Public Methods

public delete(url: *, data: *, cb: *, cbErr: *) source

Params:

NameTypeAttributeDescription
url *
data *
cb *
cbErr *

public get(url: *, cb: *, cbErr: *) source

Params:

NameTypeAttributeDescription
url *
cb *
cbErr *

public post(url: *, data: *, cb: *, cbErr: *) source

Params:

NameTypeAttributeDescription
url *
data *
cb *
cbErr *

public put(url: *, data: *, cb: *, cbErr: *) source

Params:

NameTypeAttributeDescription
url *
data *
cb *
cbErr *

public request(method: *, url: *, data: *, cbSuccess: *, cbError: *, doCache: *) source

Params:

NameTypeAttributeDescription
method *
url *
data *
cbSuccess *
cbError *
doCache *

public sendErrorReport(report: *, manualSend: boolean) source

Params:

NameTypeAttributeDescription
report *
manualSend boolean
  • optional
  • default: true