Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
    • theme_id integer Required
    • name string Required
    • file_url string Required
    • accent_color string Required
    • text_color string Required
    • active boolean Required
    • authors array[object] | array Required

      Any of:
      Hide attributes Show attributes object
      • author_id integer Required
      • user_id integer Required
      • username string Required
      • created_at integer 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/themes
curl \
 -X GET https://lztup.toil.cc/api/themes
Response examples (200)
[
  {
    "theme_id": 42,
    "name": "string",
    "file_url": "string",
    "accent_color": "string",
    "text_color": "string",
    "active": true,
    "authors": [
      {
        "author_id": 42,
        "user_id": 42,
        "username": "string",
        "created_at": 42
      }
    ],
    "created_at": 42
  }
]
Response examples (503)
{
  "detail": "Can't connect to MySQL server on '[SERVER]'"
}