curl localhost:1901/wonder-woman -v --request PUT --data '{"title":"Wonder Woman","plot":"Diana fights a war"}'
"PUT is nice for saving a
whole resource, but you need to send other properties (like title) along as
well, even if they did not change."
Post
curl localhost:1901 -v --request POST --data {"title":"Wonder Woman"}
"Submit a resource"
Read
Get
curl localhost:1901/wonder-woman -v request GET
Update
Patch
curl localhost:1901/wonder-woman -v --request PATCH --data '{"description":"Diana leaves home to fight a war."}' "To change only a few things, use PATCH"
Cheatsheet transfer
Methods
Create
Read
Other
Verbose
Options
XML, HTML or CSV
Authorization curl localhost:1901/evil-dead -v --request DELETE --header 'Authorization: token 5b8822b29'