UsersAuthentication - maxkunitsa/timeTracker GitHub Wiki

#User Authentication

Authenticates user in the system with help of Basic Access Authentication mechanism.

POST    /users/login

In our case email should be used as username.

For more information please refer wikipedia.

-- #####Response Example (success)

{
  "id": "56391bb264cbf7b8a1a5cbd3",
  "firstName": "John",
  "lastName": "Doe",
  "email": "[email protected]"
}

-- #####Response Example (error message)

{
  "message": "Not Authorized"
}