Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Curl para logar e pegar token

View gist:4224990
1 2 3 4 5 6 7 8 9
curl -H 'Content-Type: application/json' \
 
-H 'Accept: application/json' \
 
-X POST http://localhost:3000/users/sign_in \
 
-d "{\"user\" : { \"email\" : \"cmilfont@gmail.com\", \"password\" : \"testes\"}}" \
 
-c cookie
Owner

curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST http://localhost:3000/users/sign_in -d "{\"user\" : { \"email\" : \"admin@grupofortes.com.br\", \"password\" : \"testes\"}}" -c cookie -v

curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST http://localhost:3000/ag/autenticador/login -d "{\"user\" : { \"email\" : \"admin@grupofortes.com.br\", \"password\" : \"testes\"}}" -c cookie -v

curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X GET http://localhost:3000/sistemas.json -d "{\"auth_token\":\"Gh1UhcSZHf3VDHphSXPp\"}" -c cookie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.