Skip to content
wurfkeks edited this page Aug 1, 2012 · 9 revisions

Table of Contents

General

/

 * Method: GET
 * Redirects to /index.html
 * Status Code: 301
 * "Location" header contains new url

Notepad

/notes/get

 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}]

/notes/get?id=

 Example: {"title":"Test1","_id":1,"created":1339242751357,"note":"Test Note 1","modified":1339242751357}

/notes/new

 * 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

/notes/delete

 * Method: GET
 * Deletes all notes 
 * Status Code: 200

/notes/delete?id=

 * Method: GET
 * /notes/delete?id=1
 * Deletes note with the given id
 * Status Code: 200

/notes/update

 * 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.

Shoppinglist

Call Method Example Explanation Response Example
/shoppinglist/list/get

Clone this wiki locally