For the complete documentation index, see llms.txt. This page is also available as Markdown.

Profile

Endpoints for current profile

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

*/*
idinteger · int64Required
usernamestringRequired
namestringRequired
rolesstring[]Required
get/api/profile
GET /api/profile HTTP/1.1
Host: localhost:8080
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": 1,
  "username": "text",
  "name": "text",
  "roles": [
    "text"
  ]
}
put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired
Responses
200

OK

*/*
idinteger · int64Required
usernamestringRequired
namestringRequired
rolesstring[]Required
put/api/profile
PUT /api/profile HTTP/1.1
Host: localhost:8080
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "name": "text"
}
{
  "id": 1,
  "username": "text",
  "name": "text",
  "roles": [
    "text"
  ]
}

Last updated