Created
April 3, 2012 17:00
-
-
Save jaredjenkins/2293666 to your computer and use it in GitHub Desktop.
REST HTTP Example
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
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