POST /users/sign_in
Name |
Required? |
Type |
Description |
email |
Yes |
String |
Email for the user. |
password |
Yes |
String |
Password for the user. |
curl -H "Content-Type: application/json" -d '{"email": "[email protected]", "password": "password"}' -X POST "http://recruiting-api.nextcapital.com/users/sign_in"
{
"api_token": "2FxozzbPWxzDTedCrixy",
"email": "[email protected]",
"id": 1,
"todos": [1,2,3]
}
DELETE /users/sign_out
Name |
Required? |
Type |
Description |
user_id |
Yes |
String |
ID for the user. |
api_token |
Yes |
String |
API token for this user's session. |
curl -H "Content-Type: application/json" -d '{"api_token": "some_token", "user_id": 1}' -X DELETE "http://recruiting-api.nextcapital.com/users/sign_out"
Empty on success