Skip to content
Guido Barbaglia edited this page May 21, 2015 · 19 revisions

HTTP Methods

CRUD services have been implemented following the REST paradigm:

Service HTTP Method
Create POST
Retrieve GET
Update PUT
Delete DELETE

Parameters

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

Parameter Types

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 [] / {} [] / {} [] / {} [] / {}
Clone this wiki locally