Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
    • role_id integer Required
    • name string Required
    • scope array Required
    • created_at integer Required
  • 503 application/json

    Database connection error

    Hide response attribute Show response attribute object
    • detail string

      Default value is Can't connect to MySQL server on '[SERVER]'.

GET /api/roles
curl \
 -X GET https://lztup.toil.cc/api/roles
Response examples (200)
[
  {
    "role_id": 42,
    "name": "string",
    "scope": [],
    "created_at": 42
  }
]
Response examples (503)
{
  "detail": "Can't connect to MySQL server on '[SERVER]'"
}