Skip to content

Instantly share code, notes, and snippets.

@darrelmiller
Created March 6, 2012 19:18
Show Gist options
  • Save darrelmiller/1988385 to your computer and use it in GitHub Desktop.
Save darrelmiller/1988385 to your computer and use it in GitHub Desktop.
<apiResults>
<resource rel="self" href="/">
<link rel="urn:tekpub:login" href="/Login"/>
</resource>
<resource rel="self" href="/Login">
<Message>Welcome Joe</Message>
<link rel="urn:tekpub:userhome" href="/user/95/home"/>
</resource>
<resource rel="self" href="/user/95/home">
<link rel="urn:tekpub:allproductions" href="/user/95/allproductions" title="All productions" />
<link rel="urn:tekpub:newepisodes" href="episodes/recent" title="New Episodes"/>
<link rel="urn:tekpub:productionsbycategory" href="productions{?category}" />
</resource>
<resource rel="self" href="/user/95/productions">
<name>Joe</name>
<resource rel="urn:tekpub:production" href="/production/22">
<allowed>true</allowed>
<title>Rails runs rings round ReST resource representations</title>
<link rel="urn:tekpub:content" href="/content/22.mp4"/>
</resource>
<resource rel="urn:tekpub:production" href="/production/74">
<allowed>false</allowed>
<title>Surfing the waves beats surfing an API</title>
<link rel="urn:tekpub:content" href="/content/74.mp4"/>
</resource>
</resource>
<resource rel="self" href="/user/89/productions">
<name>Kelly</name>
<link name="bycategory" rel="urn:tekpub:productions" href="/user/95/productions{?category}" title="Search by category"/>
<link name="newepisodes" rel="urn:tekpub:episodes" href="/user/95/productions{?category}" title="New Episodes"/>
<resource rel="urn:tekpub:production" href="/production/22">
<allowed>true</allowed>
<title>Rails runs rings round ReST resource representations</title>
<link rel="urn:tekpub:content" href="/content/22.mp4"/>
</resource>
<resource rel="urn:tekpub:production" href="/production/74">
<allowed>false</allowed>
<title>Surfing the waves beats surfing an API</title>
<link rel="urn:tekpub:content" href="/content/74.mp4"/>
</resource>
</resource>
</apiResults>
@mikekelly
Copy link

I think the rels of the embedded resources are wrong?

@darrelmiller
Copy link
Author

darrelmiller commented Mar 7, 2012 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment