UsersRegistration - maxkunitsa/timeTracker GitHub Wiki

#User Registration

Registering user in the system.

POST    /users/register

-- #####Parameters

Name Description
email User's email address
password User's password
firstName User's first name
lastName User's last name

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

{
  "id": "563e5d3d64cb5c935d44bec4",
  "firstName": "John",
  "lastName": "Doe",
  "email": "[email protected]"
}

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

{
  "message": "User with email [email protected] already exists"
}