Posting JSON via curl


Authenticate (by digest) and POST JSON from the command line using curl:

curl -i -X POST -H 'Content-Type: application/json' -d '{"name": "The Wind Rises", "year": "2013", "rating": "5"}' --user username:password --digest http://localhost:3000/api