Router
Last updated
Last updated
Router api class with functions for communication with the backend.
All router functions are available through the context.api.router object.
Post a binary file object to the backend
Promise.<Response>
Post data to specified backend endpoint
Promise.<Response>
Put data to specified backend endpoint
Promise.<Response>
Get data from specified backend endpoint
Promise.<Response>
Fetch specified backend endpoint using a http HEAD request. This is silent and will not produce any error messages.
Promise.<Response>
Make a DELETE call to a specified backend endpoint
object
Deprecated
Proxy ajax call to external backend
Returns: object
- jQuery ajax object
*
Fetch a ConceptItem from the backend
*
Fetch a NewsItem from the backend
Updates a Concept Item
Returns: A promise with no data
*
| Promise.<TResult>
Creates a Concept Item
Returns: *
| Promise.<TResult>
- containing the resulting UUID
*
Method checks for a status code between 200 and 299 Throws error if otherwise.
Use for example when you want to reject a fetch promise
Deprecated
Use native response.json() instead
Promise.<*>
Param
Type
Description
path
string
Required -
file
object
Required - File object from file input or file drop
onProgress
function
Required - Callback function for progress event
onLoad
function
Required - Callback function for onload event
onError
function
Required -
params
function
Required -
Param
Type
path
string
parameters
object
Param
Type
path
string
parameters
object
Param
Type
Description
path
string
Required -
parameters
object
Required - Could contain headers that will be passed along parameters.headers
Param
Type
Description
path
string
Required -
parameters
object
Required - Could contain headers that will be passed along parameters.headers
Param
Type
Description
path
string
Required - Backend endpoint
parameters
object
Required - Key value request parameters
Param
Type
path
string
op
object
Param
Description
id
Required - The id of the concept
imType
Required - The x-im/type
Param
Description
id
Required - The id of the news item
imType
Required - The x-im/type
Param
Description
uuid
Required - The uuid of the Concept Item to update
concept
Required - The updated XML
Param
Description
concept
Required - The concept to create
Param
response
Param
Type
url
params
object