Skip to content

Instantly share code, notes, and snippets.

@yangtheman
Created April 23, 2015 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yangtheman/9e8d769c25fe3d02e882 to your computer and use it in GitHub Desktop.
Save yangtheman/9e8d769c25fe3d02e882 to your computer and use it in GitHub Desktop.
CURL examples
curl -H 'Accept: application/json' -H 'Content-Type: application/json' -X POST -d '{ "user": { "email": "test@email.com", "password": "password" } }' http://localhost:3000/users
curl -H 'Accept: application/json' -H 'Content-Type: application/json' -X POST -d '{ "email": "test@email.com", "password": "password" }' http://localhost:3000/users/sign_in
curl -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'X-API-EMAIL: user@example.com' -H 'X-API-TOKEN: 2-D9jBtnAPcP8fppzJAL' -X GET http://localhost:3000/private_homes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment