Skip to content

Instantly share code, notes, and snippets.

@viniciusalonso
Created December 7, 2015 11:39
Show Gist options
  • Save viniciusalonso/d4e3b327f3b4cd50ca64 to your computer and use it in GitHub Desktop.
Save viniciusalonso/d4e3b327f3b4cd50ca64 to your computer and use it in GitHub Desktop.
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