Created
December 24, 2015 11:45
-
-
Save shotaK/69236de65525211e4625 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // DELETE specific rest resource | |
| curl -v -X DELETE http://localhost:8080/api/components/country/3 | |
| // POST specific rest resource (id is generated automatically) | |
| curl -i -X POST -H "Content-Type:application/json" http://localhost:8080/api/components/country -d '{"countryCode": "COW","countryName": "Cowland"}' | |
| // PUT (update) specific rest resource | |
| curl -i -X PUT -H "Content-Type:application/json" http://localhost:8080/api/components/country/5 -d '{"id": 5,"countryCode": "AS","countryName": "American COWA"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment