Skip to content

Latest commit

 

History

History
56 lines (48 loc) · 907 Bytes

README.md

File metadata and controls

56 lines (48 loc) · 907 Bytes

README

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.

CREATE USER

STATUS 201 CREATED from POST [domain]/users

data:

"user": {
  "email": "[email protected]",
  "password": "nachooooescheese"
}

sample response:

{
    "user": {
        "email": "[email protected]",
        "authentication_token": "GhBPRwKabKQX2wLzwU56"
    }
}

USER SIGN IN

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"
    }
}