/users/:id/roles

Path Parameters
  • id
    number | null
    required
    Example42
Body
application/json
roleId
number
required
Responses
POST/users/:id/roles
curl /users/:id/roles \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "roleId": 1
}'
{
  "id": 1,
  "userId": 1,
  "roleId": 1,
  "createdAt": null,
  "updatedAt": null
}

/users

Body
application/json
id
number
username
string | null
email
string
required
password
string
required
createdAt
string | null
updatedAt
string | null
Responses
POST/users
curl /users \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "username": null,
  "email": "",
  "password": "",
  "createdAt": null,
  "updatedAt": null
}'
{
  "id": 1,
  "username": null,
  "email": "…",
  "createdAt": null,
  "updatedAt": null
}
v1.0.0
OAS 3.0.0

Tasks API

Client Libraries

/auth/sign-in

Body
application/json
id
number
username
string | null
email
string
required
password
string
required
createdAt
string | null
updatedAt
string | null
Responses
POST/auth/sign-in
curl /auth/sign-in \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "username": null,
  "email": "",
  "password": "",
  "createdAt": null,
  "updatedAt": null
}'
{
  "user": {
    "id": 1,
    "email": "…",
    "roles": null
  },
  "token": {
    "token": "…",
    "expiresAt": 1
  }
}