Created
March 6, 2012 19:18
-
-
Save darrelmiller/1988385 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Yeah. That was an early version. It's messed up. I think the JSON variant in my blog post[1] is correct though.
Darrel
[1] http://www.bizcoder.com/index.php/2012/03/05/a-tekpub-api/
…-----Original Message-----
From: Mike Kelly [mailto:[email protected]]
Sent: March-07-12 5:32 AM
To: Darrel
Subject: Re: gist gist: 1988385
I think the rels of the embedded resources are wrong?
---
Reply to this email directly or view it on GitHub:
https://gist.github.com/1988385
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the rels of the embedded resources are wrong?