Skip to content

Instantly share code, notes, and snippets.

@domenic
Created April 10, 2012 18:25
Show Gist options
  • Save domenic/2353473 to your computer and use it in GitHub Desktop.
Save domenic/2353473 to your computer and use it in GitHub Desktop.
HAL version of catalog
{
"title": "Catalog for Domenic, page 1",
"description": "Contains lots of books, which is cool",
"_links": {
"self": { "href": "/docs?page=1" },
"next": { "href": "/docs?page=2" }
},
"_embedded": {
"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