Skip to content

Instantly share code, notes, and snippets.

@mikekelly
Created January 17, 2011 14:50
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 mikekelly/782919 to your computer and use it in GitHub Desktop.
Save mikekelly/782919 to your computer and use it in GitHub Desktop.
Example use of hal
<resource rel="self" href="/my_collection">
<link rel="next" href="/another_collection" />
<link rel="search" templated="true" href="/my_collection/search={searchterm}" />
<control activity="createItem" target="/my_collection" template="/my_collection/new" method="PUT" content-type="application/vnd.ericjbowman+xml"/>
<resource rel="info" href="/my_collection/info" etag="ZOMGSCIENCE1337" cache-control="public, max-age=600">
<items>12</items>
<foo>bar</foo>
</resource>
</resource>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment