Created
January 17, 2011 14:50
-
-
Save mikekelly/782919 to your computer and use it in GitHub Desktop.
Example use of hal
This file contains 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
<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