Authentication (v1)

Download OpenAPI specification:Download

Auth

Login

Request Body schema: application/x-www-form-urlencoded
required
username
required
string
password
required
string

Responses

Response samples

Content type
application/json
{
  • "token": "authentication token"
}

Logout

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/problem+json
{
  • "type": "string",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "message": "string"
}

User

User creation

Authorizations:
bearerAuth
Request Body schema: application/json
required
username
required
string [ 3 .. 20 ] characters
email
required
string^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!...
password
required
string^(?=[^\n]*[A-Z])(?=[^\n]*[a-z])(?=[^\n]*\d)(?...
role
required
string
Enum: "ADMIN" "USER"

Responses

Request samples

Content type
application/json
{
  • "username": "username",
  • "email": "email@email.com",
  • "password": "StrongPassword",
  • "role": "ADMIN"
}

Response samples

Content type
application/problem+json
{
  • "type": "string",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "message": "string"
}

User search

Authorizations:
bearerAuth
query Parameters
q
string
page
integer
size
integer

Responses

Response samples

Content type
application/json
{
  • "users": [
    ]
}

User search

Authorizations:
bearerAuth
path Parameters
userId
required
integer <int64>

Responses

Response samples

Content type
application/json
{
  • "id": "1",
  • "username": "username",
  • "email": "email@email.com",
  • "role": "ADMIN"
}