README.rst 677 Bytes
Newer Older
1
2
3
Summary
-------

4
Easily build a webservice API on top of a cubic web database.
5

6
7
8
Once activated, the cube provides new controllers (their regid is
`webservices`) which respond on the rest path of entities, if the requests
matches one of the following condition:
9

10
11
-   Content-Type == 'application/json'
-   Accept == 'application/json'
12

13
The following API is automatically provided for all the entities:
14

15
.. csv-table::
16

17
18
19
20
21
22
   HTTP, action
   `GET /etype?filter=xxx`, return a list of entities matching the filter
   `POST /etype`, create a new entity
   `GET /etype/1234`, return a particular entity
   `PUT /etype/1234`, update an entity
   `DELETE /etype/1234`, delete an entity
23