Skip to content

Instantly share code, notes, and snippets.

@pbouzakis
Created April 10, 2012 17:20
Show Gist options
  • Save pbouzakis/2352989 to your computer and use it in GitHub Desktop.
Save pbouzakis/2352989 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"}
}
}
],
"page": 2
"pageSize": 10,
"sortedBy": "ean",
"filter": "ALL",
"links": {
"prev": { "href": "./docs?page=1&pageSize=10", "type": "application/vnd.sidearm+json" },
"next": { "href": "./docs?page=3&pageSize=10", "type": "application/vnd.sidearm+json" }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment