Last active
November 8, 2018 19:04
-
-
Save eugenio-oliveira/897c5263738c75cf4ac9253a4ad34a37 to your computer and use it in GitHub Desktop.
Comandos CURL
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
# GET | |
curl http://localhost:4000/contacts/ | |
# POST | |
curl http://localhost:4000/contacts/ -X POST -H "Content-Type: application/json" -d '{"name" : "Eugênio Oliveira", "email": "[email protected]"}' | |
# PATCH | |
curl http://localhost:4000/contacts/101/ -X PATCH -H "Content-Type: application/json" -d '{"name" : "Eugênio Oliveira", "email": "[email protected]", "birthdate" : "07/11/1984"}' | |
# DELETE | |
curl http://localhost:4000/contacts/101/ -X DELETE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment