mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
4.5 KiB
4.5 KiB
Lumina API
- Lumina API
Plugins
Install Plugin
Install Plugin Request
POST api/v1/plugins
Uploads the plugin as a multipart/form-data request. The first file part of the form is used as the plugin archive, which can be either a single .dll assembly or a .zip archive containing the plugin assembly and its dependencies. The assemblies are placed into the plugin storage directory of the API and are loaded at the next API startup.
Install Plugin Response
200 Ok
Get Plugins
Get Plugins Request
GET api/v1/plugins
Get Plugins Response
200 Ok
[
{
"id": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"name": "OpenLibrary",
"author": "Binary Alley",
"version": "1.0.0",
"description": "Downloads book metadata from Open Library.",
"loadStatus": "Loaded",
"loadError": null,
"settings": {
"language": "en"
}
}
]
Get Plugin Settings
Get Plugin Settings Request
GET api/v1/plugins/{pluginId}/settings
Get Plugin Settings Response
200 Ok
{
"pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"schema": [
{
"key": "language",
"label": "Language",
"type": "Text",
"defaultValue": "en",
"allowedValues": null
},
{
"key": "maxResults",
"label": "Maximum results",
"type": "Number",
"defaultValue": "10",
"allowedValues": null
}
],
"settings": {
"language": "en",
"maxResults": "10"
}
}
Update Plugin Settings
Update Plugin Settings Request
PUT api/v1/plugins/{pluginId}/settings
{
"pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"settings": {
"language": "en",
"maxResults": "25"
}
}
Update Plugin Settings Response
200 Ok
Get Library Metadata Providers
Get Library Metadata Providers Request
GET api/v1/libraries/{libraryId}/metadata-providers
Get Library Metadata Providers Response
200 Ok
[
{
"pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"name": "OpenLibrary",
"isEnabled": true,
"rank": 1
}
]
Set Library Metadata Provider Enabled
Set Library Metadata Provider Enabled Request
PUT api/v1/libraries/{libraryId}/metadata-providers/{pluginId}/enabled
{
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
"pluginId": "f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"isEnabled": true
}
Set Library Metadata Provider Enabled Response
200 Ok
Reorder Library Metadata Providers
Reorder Library Metadata Providers Request
PUT api/v1/libraries/{libraryId}/metadata-providers/reorder
{
"libraryId": "3b3a19f3-1f5a-4d5a-9a3a-5c5a4a3a2a1a",
"pluginIds": [
"f0d1a2b3-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"
]
}
Reorder Library Metadata Providers Response
200 Ok