Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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