API Root: http://88.80.185.224:5000/api/v1/
Swagger docs available here
Create a new folder
POST
- folder_name: 256 char string
Newly created folder
- 200
{"status": {"id": 2, "name": "alan021939024"}}
Updated folder details
PUT
- folder_name: 256 char string
- id: id of folder to update
Updated folder
- 200
{"status": {"id": 2, "name": "new_name"}}
Remove a folder
DELETE .../folders/1
- id: id of folder to update
Deleted folder
- 200
{"status": {"id": 2, "name": "new_name"}}
- Paginated list of all folders
/folders?per_page=1&page=2
Return all folders
- page: next page of paginated results, default 1
- per_page: , optional defaults to 20
GET
All folders
- 200
{"status": [{"id": 1, "name": "dir 1"}, {"id": 2, "name": "dir 2"}]}
- Return a single folder
/folders/<folder_id>
- folder_id: id of folder to retrieve
GET
Single Folder
- 200
{"status": {"id": 1, "name": "dir 1"}}
404 Resource not found