Skip to content

Instantly share code, notes, and snippets.

@fzaninotto
Created August 9, 2012 11:48
Show Gist options
  • Save fzaninotto/5fae6f5349b90b5dcfff to your computer and use it in GitHub Desktop.
Save fzaninotto/5fae6f5349b90b5dcfff to your computer and use it in GitHub Desktop.
GET /authors?name=Tol*
HTTP/1.1 200 OK
<?xml version="1.0" encoding="utf-8" ?>
<authors>
<author id="1234">
<name>Leo Tolstoy</name>
</author>
<author id="5678">
<name>J. R. R. Tolkien</name>
</author>
</authors>
GET /authors/1234/books
HTTP/1.1 200 OK
<?xml version="1.0" encoding="utf-8" ?>
<books>
<book id="6789">
<name>War and Peace</name>
<publicationDate>1869</publicationDate>
</book>
<book id="7564">
<name>Anna Karenina</name>
<publicationDate>1877</publicationDate>
</book>
</books>
GET /authors/5678/books
HTTP/1.1 200 OK
<?xml version="1.0" encoding="utf-8" ?>
<books>
<book id="5432">
<name>The Hobbit</name>
<publicationDate>1937</publicationDate>
</book>
<book id="7312">
<name>The Lord of the Rings</name>
<publicationDate>1955</publicationDate>
</book>
</books>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment