Closed jasny closed 5 years ago
Add a endpoint_root option for the configuration. This can be 'server' or 'database'. If it's 'database', the endpoints should be:
endpoint_root
GET /collection
GET /collection?query=%7B%22isDone%22%3A%20false%7D
GET /collection?query=%7B%22isDone%22%3A%20false%7D&limit=2&skip=2
GET /collection/id
POST /collection
PUT /collection/id
PATCH /collection/id
DELETE /collection/id
Add a
endpoint_root
option for the configuration. This can be 'server' or 'database'. If it's 'database', the endpoints should be:GET /collection
- Returns all documentsGET /collection?query=%7B%22isDone%22%3A%20false%7D
- Returns all documents satisfying queryGET /collection?query=%7B%22isDone%22%3A%20false%7D&limit=2&skip=2
- Ability to add options to query (limit, skip, etc)GET /collection/id
- Returns document with idPOST /collection
- Insert new document in collection (document in POST body)PUT /collection/id
- Replace document with id (updated document in PUT body)PATCH /collection/id
- Update document with id (updates in PATCH body)DELETE /collection/id
- Delete document with id