Skip to content

Instantly share code, notes, and snippets.

@tfausak
Created October 22, 2014 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfausak/ca3b32da13fdb74df856 to your computer and use it in GitHub Desktop.
Save tfausak/ca3b32da13fdb74df856 to your computer and use it in GitHub Desktop.
Example usage of Hairy.
$ http post :3000/tasks content='Do something!' created='2014-10-21T00:00:00Z'
{
"content": "Do something!",
"created": "2014-10-21T00:00:00.000Z"
}
$ http :3000/tasks
[
{
"content": "Do something!",
"created": "2014-10-21T00:00:00.000Z",
"id": 2
}
]
$ http :3000/tasks/2
{
"content": "Do something!",
"created": "2014-10-21T00:00:00.000Z"
}
$ http put :3000/tasks/2 content='Do something else!' created='2014-10-21T00:00:00Z'
{
"content": "Do something else!",
"created": "2014-10-21T00:00:00.000Z"
}
$ http delete :3000/tasks/2
null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment