-
Notifications
You must be signed in to change notification settings - Fork 7
Interface
wurfkeks edited this page Aug 1, 2012
·
9 revisions
* Method: GET * Redirects to /index.html * Status Code: 301 * "Location" header contains new url
Exaple: [{"title":"Test2","_id":2,"created":1339242756956,"note":"Test Note 2","modified":1339242756956},{"title":"Test1","_id":1,"created":1339242751357,"note":"Test Note 1","modified":1339242751357}]
Example: {"title":"Test1","_id":1,"created":1339242751357,"note":"Test Note 1","modified":1339242751357}
* Method: POST * Form parameters: * title * note *tags (optional) * Creates and persists a new note * Status Codes: * 500 if parameter parsing failed * 400 if parameters are wrong
* Method: GET * Deletes all notes * Status Code: 200
* Method: GET * /notes/delete?id=1 * Deletes note with the given id * Status Code: 200
* Method: POST * Form parameters: * _id * title * note * tags (optional) * Creates and persists a new note * Status Codes: * 500 if parameter parsing failed * 400 if parameters are wrong
Every "/notes/" call returns "401 Unauthorized" if authentication is enabled and the user isn't logged in.
| Call | Method | Example | Explanation | Response Example |
|---|---|---|---|---|
| /shoppinglist/list/get |