Created
October 22, 2014 00:33
-
-
Save tfausak/ca3b32da13fdb74df856 to your computer and use it in GitHub Desktop.
Example usage of Hairy.
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
$ 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