Skip to content

Instantly share code, notes, and snippets.

@lambda-fairy
Last active December 20, 2015 22:18
Show Gist options
  • Save lambda-fairy/6203744 to your computer and use it in GitHub Desktop.
Save lambda-fairy/6203744 to your computer and use it in GitHub Desktop.
Sparkle API
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