-
Notifications
You must be signed in to change notification settings - Fork 48
Notes 0.2
Bernhard Posselt edited this page Aug 17, 2013
·
15 revisions
- Status: Implemented
- Method: GET
- Route: /notes
- Parameters: none
- Returns:
[
{
id: 76,
modified: 1376753464,
title: "New note"
content: "New note\n and something more",
}, // etc
]
- Status: Implemented
- Method: GET
- Route: /notes/{noteId}
- Parameters: none
- Return codes:
- HTTP 404: If the note does not exist
- Returns:
{
id: 76,
modified: 1376753464,
title: "New note"
content: "New note\n and something more",
}
Creates a new note and returns the note
- Status: Implemented
- Method: POST
- Route: /notes
- Parameters: None
- Returns:
{
id: 76,
content: "",
modified: 1376753464,
title: ""
}
Deletes a note with the id noteId
- Status: Implemented
- Method: PUT
- Route: /notes/{noteId}
- Parameters:
{
content: "New content",
title: "New title"
}
- Return codes:
- HTTP 404: If the note does not exist
- Returns:
{
id: 76,
content: "",
modified: 1376753464,
title: ""
}
Deletes a note with the id noteId
- Status: Implemented
- Method: DELETE
- Route: /notes/{noteId}
- Parameters: none
- Return codes:
- HTTP 404: If the note does not exist
- Returns: nothing