Skip to content

Instantly share code, notes, and snippets.

@darrelmiller
Created March 6, 2012 13:07
Show Gist options
  • Save darrelmiller/1986176 to your computer and use it in GitHub Desktop.
Save darrelmiller/1986176 to your computer and use it in GitHub Desktop.
Tekpub - all productions
GET /user/95/allproductions
=>
200 OK
Content-Type: application/hal+json
{
"_links" : {
"self" : { "href" : "/user/95/allproductions" },
},
"name" : "Joe",
"_embedded" : {
"urn:tekpub:production" : [
{ "_links": {
"self": { "href": "/production/22" },
},
"allowed" : "true",
"title" : "Rails runs rings round ReST resource representations"
},
{ "_links": {
"self": { "href": "/production/74" },
},
"allowed" : "false",
"title" : "Surfing the waves beats surfing an API"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment