/user/login - POST

/user/login - POST

Method description

A simple login service method to check if the login and password credentials are valid. This should return an authorization matrix if the login is successful.

Request Data

{ "email": "email@email.com", "password": "password" }

Name

Type

Optional

Description

Name

Type

Optional

Description

email

string

false

user's email who wants to log in

password

string

false

user password

Response format and codes

HTTP code

description

HTTP code

description

200

successful login

401

invalid login credentials

 

On successful login, the service should return a response similar to this:

{ "user_token": token, "expiration_date": expiration_date }

 

On a failed login attempt the response is like the following example:

{ "err": "invalid.login.credentials" }