Skip to content

Instantly share code, notes, and snippets.

@jaredjenkins
Created April 3, 2012 17:00
Show Gist options
  • Save jaredjenkins/2293666 to your computer and use it in GitHub Desktop.
Save jaredjenkins/2293666 to your computer and use it in GitHub Desktop.
REST HTTP Example
GET /blog/posts HTTP 1.1
HOST: example.com
Content-Type: application/atom+xml
Content-Length: ...
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>
Blog Posts
</title>
<link rel="alternate" uri="http://example.com/blog/posts" />
<updated>...</updated>
...
<entry>
<link rel="alternate" type="application/xml"
uri="http://example.com/blog/post/1"/>
<id>1</id>
...
</entry>
</feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment