Entities controller
This controller is in charge of handling all publicly exposed entites logic.
- Source:
Methods
(static) createEntity(req, res) → {Promise.<Object>}
Create an entity
Parameters:
| Name | Type | Description |
|---|---|---|
req |
Object | Request reference |
res |
Object | Response reference |
- Source:
Returns:
New entity
- Type
- Promise.<Object>
(static) listEntities(req, res) → {Promise.<Object>}
List entities based on given criterias
Parameters:
| Name | Type | Description |
|---|---|---|
req |
Object | Request reference |
res |
Object | Response reference |
- Source:
Returns:
Entities list
- Type
- Promise.<Object>