Skip to content

Instantly share code, notes, and snippets.

@donavon
Forked from pbouzakis/gist:2352989
Created April 10, 2012 18:11
Show Gist options
  • Save donavon/2353348 to your computer and use it in GitHub Desktop.
Save donavon/2353348 to your computer and use it in GitHub Desktop.
Documents
// super simple
// all you need is the relation key, since the rest of the hypermedia control info is instead the individual items self relation
{
"http://rel.nkstdy.co/document": [
{
"ean":"032cfa77face18c7ce5cdac190d34b202f4a0574eb6437427ab018b59495445c",
"title":"JS2",
"dateAdded":"2012-04-03T19:32:07.583Z",
"dateModified":"2012-04-05T17:22:10.796Z",
"isArchived":false,
"links": {
"self": {"href":"./032cfa77face18c7ce5cdac190d34b202f4a0574eb6437427ab018b59495445c","type":"image/jpeg"},
"describedby": {"href":"./032cfa77face18c7ce5cdac190d34b202f4a0574eb6437427ab018b59495445c","type":"application/vnd.sidearm+json"},
"http://rel.nkstdy.co/thumbnail":{"href":"./032cfa77face18c7ce5cdac190d34b202f4a0574eb6437427ab018b59495445c/thumbnail"}
}
},
{
"ean":"4f5f07838cca0a4bcaebd21689e24b4494a987f16faa3e7d46405191abe2a1cd",
"title":"Mia",
"dateAdded":"2012-04-03T19:32:07.583Z",
"dateModified":"2012-04-05T17:22:10.796Z",
"isArchived": true,
"links": {
"self": {"href":"./4f5f07838cca0a4bcaebd21689e24b4494a987f16faa3e7d46405191abe2a1cd","type":"image/jpeg"},
"describedby": {"href":"./4f5f07838cca0a4bcaebd21689e24b4494a987f16faa3e7d46405191abe2a1cd","type":"application/vnd.sidearm+json"},
"http://rel.nkstdy.co/thumbnail":{"href":"./4f5f07838cca0a4bcaebd21689e24b4494a987f16faa3e7d46405191abe2a1cd/thumbnail"}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment