Last active
December 20, 2015 22:18
-
-
Save lambda-fairy/6203744 to your computer and use it in GitHub Desktop.
Sparkle API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /project | |
200 OK | |
{ | |
"revision": revision, | |
"tasks": [ | |
{ | |
"title": string, | |
"completed": boolean, | |
"children": [ .. ] | |
}, | |
.. | |
] | |
} | |
-------------------------------- | |
POST /tasks/0/4/2/new -- List of indices to "drill down" into the tree | |
{ | |
"task": { | |
"title": string, | |
"completed": boolean | |
} | |
"index": integer -- Index at which to insert the task | |
} | |
201 Created | |
-------------------------------- | |
POST /tasks/0/4/2 | |
{ | |
"title": string, | |
"completed": boolean | |
} | |
200 OK | |
-------------------------------- | |
DELETE /tasks/0/4/2 | |
204 No Content | |
-------------------------------- | |
GET /tasks?from=<revision> | |
[] | |
-------------------------------- | |
GET /tasks?from=<revision> | |
[ | |
{ | |
"type": "insert", | |
"position": list of indices, | |
"task": .. | |
}, | |
.. | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment