Profile

Endpoints for current profile

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

OK

*/*
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

*/*
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

Was this helpful?