Testing Restful Apis With Curl

under Programming Gist

 

Ultra simple way to test a JSON API POST response using curl

curl -X POST -H "Content-Type: application/json" -d { \"title\\": \"value1\" }" http://apisomewhere:8080/api/something

Watch out for single quotes, they don’t pass well in windows