Skip to content

Instantly share code, notes, and snippets.

@mikekelly
Created May 27, 2011 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mikekelly/994942 to your computer and use it in GitHub Desktop.
Save mikekelly/994942 to your computer and use it in GitHub Desktop.
Example usage of the media type application/hal+xml
<resource rel="self" href="/" xmlns:ex="http://example.org/rels/">
<link rel="ex:look" href="/bleh" />
<link rel="ex:search" href="/search?term={searchTerm}" />
<resource rel="ex:member" name="1" href="/foo">
<link rel="ex:created_by" href="/some_dude" />
<example>bar</example>
<resource rel="ex:status" href="/foo;status">
<some_property>disabled</some_property>
</resource>
</resource>
<resource rel="ex:member" name="2" href="/bar">
<link rel="ex:created_by" href="http://example.com/some_other_guy" />
<example>bar</example>
<resource rel="ex:status" href="/foo;status">
<some_property>disabled</some_property>
</resource>
</resource>
<link rel="ex:widget" name="1" href="/chunky" />
<link rel="ex:widget" name="2" href="/bacon" />
</resource>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment