AUTH

(register)

app/controllers/api/auth_controller.ts - register

post/api/auth/register

Request

  • The document declares no server URL.
  • Auth: none required

Request body

usernamestring
emailstring
passwordstring

Example request

{
  "username": "Lorem Ipsum",
  "email": "Lorem Ipsum",
  "password": "Lorem Ipsum"
}

Response

Returns 200 (OK) as application/json

tokenstring

Example response

{
  "user": {
    "username": "Lorem Ipsum",
    "firstName": "John",
    "lastName": "Doe",
    "id": 538,
    "email": "johndoe@example.com",
    "createdAt": "2021-03-23T16:13:08.489+01:00",
    "balance": 185
  },
  "token": "Lorem Ipsum"
}

Changes

No recorded changes to this operation across all 1 revision of this API.