Created
December 7, 2015 11:39
-
-
Save viniciusalonso/d4e3b327f3b4cd50ca64 to your computer and use it in GitHub Desktop.
This file contains 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
curl -i -X POST -H "Content-Type: application/json" -d "{'doctor': {'name':'xablau', 'crm': '123478', 'specialty': 'Pediatra'} }" http://localhost:3000/api/v1/doctors | |
curl -i -X POST POST -H "Content-Type: application/json" -d "{'doctor': {'name':'xablau', 'crm': '123478', 'specialty': 'Pediatra'} }" | |
curl -i -X POST -H "Content-Type: application/json" -d "{'doctor': {'name':'xablau', 'crm': '123478', 'specialty': 'Pediatra'} }" http://localhost:3000/api/v1/doctors | |
curl -i -X POST -H "Content-Type: application/json" -d "'doctor': {'name': 'xablau', 'crm': '123478', 'specialty': 'Pediatra'} }" http://localhost:3000/api/v1/doctors | |
curl -i -X POST -H "Content-Type: application/json" -d '"doctor": {"name": "xablau", "crm": "123478", "specialty": "Pediatra"} }' http://localhost:3000/api/v1/doctors | |
curl -i -X POST -H "Content-Type: application/json" -d ' 'doctor: {"name": "xablau", "crm": "123478", "specialty": "Pediatra"} }' http://localhost:3000/api/v1/doctors | |
curl -X POST -H "Content-Type: application/json" -H "Accept:application/json" -d '{ "doctor": {"name": "xablau", "crm": "123478", "specialty": "Pediatra"} }' http://localhost:3000/api/v1/doctors | |
curl -X POST -H "Content-Type: application/json" -H "Accept:application/json" -d '{ "doctor": {"name": "xablau", "crm": "123478", "specialty": ""} }' http://localhost:3000/api/v1/doctors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment