Entities controller
This controller is in charge of handling all publicly exposed entites logic.
- Source:
Methods
(static) create(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) getById(req, res) → {Promise.<Object>}
Retrieve a single entity
Parameters:
| Name | Type | Description |
|---|---|---|
req |
Object | Request reference |
res |
Object | Response reference |
- Source:
Returns:
Entity
- Type
- Promise.<Object>
(static) list(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>
(static) refresh(req, res) → {Promise.<Object>}
Import entities
Parameters:
| Name | Type | Description |
|---|---|---|
req |
Object | Request reference |
res |
Object | Response reference |
- Source:
Returns:
Entities list
- Type
- Promise.<Object>
(static) remove(req, res) → {Promise.<Object>}
Destroy an entity
Parameters:
| Name | Type | Description |
|---|---|---|
req |
Object | Request reference |
res |
Object | Response reference |
- Source:
Returns:
Removed entity
- Type
- Promise.<Object>
(static) update(req, res) → {Promise.<Object>}
Update an entity
Parameters:
| Name | Type | Description |
|---|---|---|
req |
Object | Request reference |
res |
Object | Response reference |
- Source:
Returns:
Updated entity
- Type
- Promise.<Object>