Skip to content

Instantly share code, notes, and snippets.

@mamund
Last active August 29, 2015 13:56
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 mamund/9257951 to your computer and use it in GitHub Desktop.
Save mamund/9257951 to your computer and use it in GitHub Desktop.
item and template don't need to coincide
{
"collection" : {
"version" : "1.0",
"href" : "http://example.org/template-v-items/",
"links" : [
{"rel" : "help", "href" : "http://example.org/template-v-item/publications.html"},
{"rel" : "profile", "href" : "http://example.org/template-v-item/profiles/publications.alps"}
],
"items" : [
{
"href" : "http://example.org/template-v-items/0",
"data" : [
{"name" : "id", "value" : "0"},
{"name" : "name", "value" : "Item Zero"}
]
},
{
"href" : "http://example.org/template-v-items/0",
"data" : [
{"name" : "id", "value" : "0"},
{"name" : "name", "value" : "Item Zero"}
]
}
],
"template" : {
"data" : [
{"name" : "name", "value" : ""},
{"name" : "publisher", "value" : ""},
{"name" : "numberOfPages", "value" : ""}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment