-
Notifications
You must be signed in to change notification settings - Fork 2
3) CRUD Services
Guido Barbaglia edited this page May 21, 2015
·
19 revisions
CRUD services have been implemented following the REST paradigm:
Service | HTTP Method |
---|---|
Create | POST |
Retrieve | GET |
Update | PUT |
Delete | DELETE |
Each service takes four parameters:
Name | Description | Values |
---|---|---|
datasource | Name of the datasource. | As specified in the configuration file. |
query | Payload that will be passed to the DB. | n.a. |
collection | Name of the collection (NoSQL) or of the table (SQL). | n.a. |
outputType | Defines the format of the output: array of arrays or array of objects. | object (default) array |
The type of each parameter may change according to the required CRUD service and database type.
CREATE | RETRIEVE | UPDATE | DELETE | |
---|---|---|---|---|
datasource | string | string | string | string |
query | string / {} | string / {} | string / {} | string / {} |
collection | string | string | string | string |
outputType | [] / {} | [] / {} | [] / {} | [] / {} |