This repository has been archived by the owner on Jul 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 106
Folders 1.2
Bernhard Posselt edited this page Aug 31, 2013
·
7 revisions
- Status: Implemented
- Method: GET
- Route: /folders
- Parameters: none
- Returns:
{
"folders": [
{
"id": 4,
"name": "Media"
}, // etc
]
}
Creates a new folder and returns a new folder object
- Status: Implemented
- Method: POST
- Route: /folders
- Parameters:
{
"name": "folder name"
}
- Return codes:
- HTTP 409: If the folder exists already
- HTTP 422: If the folder name is invalid (for instance empty)
- Returns:
{
"folders": [
{
"id": 4,
"name": "Media"
}
]
}
Deletes a folder with the id folderId and all the feeds it contains
- Status: Implemented
- Method: DELETE
- Route: /folders/{folderId}
- Parameters: none
- Return codes:
- HTTP 404: If the folder does not exist
- Returns: nothing
Only the name can be updated
- Status: Implemented
- Method: PUT
- Route: /folders/{folderId}
- Parameters:
{
"name": "folder name"
}
- Return codes:
- HTTP 409: If the folder name does already exist
- HTTP 404: If the folder does not exist
- HTTP 422: If the folder name is invalid (for instance empty)
- Returns: nothing
- Status: Implemented
- Method: PUT
- Route: /folders/{folderId}/read
- Parameters:
{
// mark all items read lower than equal that id
// this is mean to prevent marking items as read which the client/user does not yet know of
"newestItemId": 10
}
- Return codes:
- HTTP 404: If the feed does not exist
- Returns: nothing