Skip to content

Instantly share code, notes, and snippets.

@2hamed
Last active November 26, 2019 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2hamed/0fd69d6094dfdead19b8bd66c7b33be6 to your computer and use it in GitHub Desktop.
Save 2hamed/0fd69d6094dfdead19b8bd66c7b33be6 to your computer and use it in GitHub Desktop.
Done JSON schema
// this is the main done item
{
"id": 123,
"title": "this is the title of done",
"content": "full description of the done, may exceed many lines",
"done_count": 1000,
"redone_count": 145,
"created_at": "dd:mm:YYYYTHH:mm:ss+0000",
"updated_at": "dd:mm:YYYYTHH:mm:ss+0000",
"user":{
"id": 123,
"name": "Ehsan Fathian",
"photo_url": "http://example.org/path/to/file.png",
"handle": "@ehsanfathian"
}
}
// this is the full user object
{
"id": 123,
"name": "Ehsan Fathian",
"handle": "@ehsanfathian",
"photo_url": "http://example.org/path/to/file.png",
"original_photo_url": "http://example.org/path/to/file.png",
"created_at": "dd:mm:YYYYTHH:mm:ss+0000",
"bio": "a short description of the user's liking"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment