mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 22:01:10 +00:00
Adds plugin upload from the web client
This commit is contained in:
1 parent
d84823f6d2
commit
b3ffb5dfab
57 files changed
+2774
-16
No files matched your search
@@ -2,6 +2,9 @@
|
||||
|
||||
- [Lumina API](#lumina-api)
|
||||
- [Plugins](#plugins)
|
||||
- [Install Plugin](#install-plugin)
|
||||
- [Install Plugin Request](#install-plugin-request)
|
||||
- [Install Plugin Response](#install-plugin-response)
|
||||
- [Get Plugins](#get-plugins)
|
||||
- [Get Plugins Request](#get-plugins-request)
|
||||
- [Get Plugins Response](#get-plugins-response)
|
||||
@@ -23,6 +26,22 @@
|
||||
|
||||
## Plugins
|
||||
|
||||
### Install Plugin
|
||||
|
||||
#### Install Plugin Request
|
||||
|
||||
```js
|
||||
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
|
||||
|
||||
```js
|
||||
200 Ok
|
||||
```
|
||||
|
||||
### Get Plugins
|
||||
|
||||
#### Get Plugins Request
|
||||
|
||||
Reference in new issue
Block a user