sessions handled by devise_token_auth gem


DELETE /api/auth/user/sign_out
log out

aka end session


POST /api/auth/user/sign_in
login

authenticate using email and password. Response includes user’s content preferences

Ejemplos

{"success":true,"data":{"id":1,"email":"somebody@example.com","name":"Somebody","role":"role","uid":"somebody@example.com","provider":"email","content_preferences":[{"kind":"que-es","level":1, "order":0},...]}}

Parámetros

Nombre del parámetro Descripción
login
requerido

Value:

Must be String

password
requerido

Value:

Must be String


POST /api/auth/user/key_authorize
login using `authorization_key`

authenticate using login and authorization key. Response includes user’s content preferences

Parámetros

Nombre del parámetro Descripción
login
requerido

Value:

Must be String

authorization_key
requerido

Value:

Must be String