Class: Modules

util.Modules(entityManager)

An executor of Modules running on Baqend.

Constructor

new Modules(entityManager)

Parameters:
Name Type Description
entityManager EntityManager
Source:

Members

entityManager :EntityManager

Type:
Source:

Methods

get(bucket, queryopt, optionsopt, doneCallbackopt, failCallbackopt) → {Promise.<*>}

Calls the module, which is identified by the given bucket

The optional query parameter will be attached as GET-parameters.

Parameters:
Name Type Attributes Description
bucket string

Name of the module

query Object.<string, string> | string <optional>

GET-Parameter as key-value-pairs or query string

options Object <optional>

Additional request options

Properties
Name Type Attributes Description
responseType string <optional>

The type used to provide the response data, defaults to text oder json
depends on the received data, can be one of arraybuffer, blob, json, text, base64, data-url

doneCallback function <optional>
failCallback function <optional>
Source:
Returns:
Type
Promise.<*>

post(bucket, bodyopt, optionsopt, doneCallbackopt, failCallbackopt) → {Promise.<*>}

Calls the module, which is identified by the given bucket

Parameters:
Name Type Attributes Description
bucket string

Name of the module

body string | Blob | File | ArrayBuffer | FormData | json <optional>

The POST-body data to send

options Object <optional>

Additional request options

Properties
Name Type Attributes Description
requestType string <optional>

A optional type hint used to correctly interpret the provided data, can be one
of arraybuffer, blob, json, text, base64, data-url, form

mimeType string <optional>

The mimType of the body. Defaults to the mimeType of the provided data if
it is a file object, blob or data-url

responseType string <optional>

The type used to provide the response data, defaults to text oder json
depends on the received data, can be one of arraybuffer, blob, json, text, base64, data-url

doneCallback function <optional>
failCallback function <optional>
Source:
Returns:
Type
Promise.<*>