This shows basic authentication via devise with a json api.
Following section shows basic user auth using the api. As of right now there is no support for token revocation or token expiration.
STATUS 201 CREATED
from
POST [domain]/users
data:
"user": {
"email": "[email protected]",
"password": "nachooooescheese"
}
sample response:
{
"user": {
"email": "[email protected]",
"authentication_token": "GhBPRwKabKQX2wLzwU56"
}
}
STATUS 200 OK
from
POST [domain]/users/sign_in
data:
{
"user": {
"email": "[email protected]",
"password": "nachooooescheese"
}
}
sample response:
{
"user": {
"email": "[email protected]",
"authentication_token": "GhBPRwKabKQX2wLzwU56"
}
}