Skip to content

Instantly share code, notes, and snippets.

@darrelmiller
Created March 6, 2012 13:09
Show Gist options
  • Save darrelmiller/1986182 to your computer and use it in GitHub Desktop.
Save darrelmiller/1986182 to your computer and use it in GitHub Desktop.
Tekpub - production
GET /production/22
=>
200 OK
Content-Type: application/hal+json
{
"_links" : {
"self" : { "href" : "/production/22" },
},
"title" : "Rails runs rings round ReST resource representations",
"_embedded" : {
"urn:tekpub:episode" : [
{ "_links": {
"self": { "href": "/episode/745" },
"urn:tekpub:content" : { "href" : "/content/745.mp4" }
},
"title" : "PATCH or PUT that is the question",
},
{ "_links": {
"self": { "href": "/episode/921" },
"urn:tekpub:content" : { "href" : "/content/921.mp4" }
},
"title" : "RESTful URL - The mythical creature"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment