Basic curl REST testing
2014.11.19
curlrestcli
# GET
curl http://localhost:3000/api/items
# POST
curl -X POST -H "Content-Type: application/json" \
-d '{"name":"test"}' http://localhost:3000/api/items
# PUT
curl -X PUT -H "Content-Type: application/json" \
-d '{"id":1,"name":"test"}' http://localhost:3000/api/items/1
# DELETE
curl -X DELETE http://localhost:3000/api/items/1