mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 22:01:10 +00:00
5.3 KiB
5.3 KiB
Lumina API
- Lumina API
Themes
Get Themes
Get Themes Request
GET api/v1/themes
Get Themes Response
200 Ok
[
{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"themeId": "default-dark",
"name": "Default Dark",
"description": "A dark theme bundled with the application.",
"author": "Lumina",
"version": "1.0.0",
"previewPath": "preview.png",
"installSource": "Bundled",
"isCurrent": true,
"installedAtUtc": "2025-01-01T12:00:00.0000000Z",
"isDeleted": false
}
]
Install Theme
Install Theme Request
POST api/v1/themes
Uploads the theme pack as a ZIP file in a multipart/form-data request. The first file part of the form is used as the theme archive.
Install Theme Response
200 Ok
{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"themeId": "my-theme",
"name": "My Theme",
"description": "A theme uploaded by a user.",
"author": "JohnDoe",
"version": "1.0.0",
"previewPath": null,
"installSource": "Uploaded",
"isCurrent": null,
"installedAtUtc": "2025-01-01T12:00:00.0000000Z",
"isDeleted": false
}
Set Current Theme
Set Current Theme Request
PUT api/v1/themes/current
{
"themeId": "my-theme"
}
Set Current Theme Response
200 Ok
{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"themeId": "my-theme",
"name": "My Theme",
"description": "A theme uploaded by a user.",
"author": "JohnDoe",
"version": "1.0.0",
"previewPath": null,
"installSource": "Uploaded",
"isCurrent": true,
"installedAtUtc": "2025-01-01T12:00:00.0000000Z",
"isDeleted": false
}
Get Current Theme
Get Current Theme Request
GET api/v1/themes/current
Get Current Theme Response
200 Ok
{
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"themeId": "my-theme",
"name": "My Theme",
"description": "A theme uploaded by a user.",
"author": "JohnDoe",
"version": "1.0.0",
"previewPath": null,
"installSource": "Uploaded",
"isCurrent": true,
"installedAtUtc": "2025-01-01T12:00:00.0000000Z",
"isDeleted": false
}
Get Theme Settings
Get Theme Settings Request
GET api/v1/themes/settings
Get Theme Settings Response
200 Ok
{
"maxArchiveBytes": 52428800,
"defaultThemeId": "default-dark"
}
Get Theme Template
Get Theme Template Request
GET api/v1/themes/{themeId}/templates/{pageKey}
Get Theme Template Response
200 Ok
{
"theme": {
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"themeId": "my-theme",
"name": "My Theme",
"description": "A theme uploaded by a user.",
"author": "JohnDoe",
"version": "1.0.0",
"previewPath": null,
"installSource": "Uploaded",
"isCurrent": true,
"installedAtUtc": "2025-01-01T12:00:00.0000000Z",
"isDeleted": false
},
"template": "<!DOCTYPE html>\n<html>\n...\n</html>"
}
Get Theme Asset
Get Theme Asset Request
GET api/v1/themes/{themeId}/assets/{assetPath}
Get Theme Asset Response
200 Ok
Returns the asset file (e.g. a stylesheet, script or image) stored in the theme pack.
Get Theme Archive
Get Theme Archive Request
GET api/v1/themes/{themeId}/archive
Get Theme Archive Response
200 Ok
Returns the theme pack as a downloadable ZIP archive.
Delete Theme
Delete Theme Request
DELETE api/v1/themes/{themeId}
Delete Theme Response
204 No Content
Restore Theme
Restore Theme Request
POST api/v1/themes/{themeId}/restore
Restore Theme Response
204 No Content