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
|
|||||||||||
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
|
|||||||||||||||||||
doneCallback |
function |
<optional> |
|||||||||||||||||
failCallback |
function |
<optional> |
- Source:
Returns:
- Type
- Promise.<*>