|
|
@@ -68,10 +68,10 @@ schema("/plugins") ->
|
|
|
#{
|
|
|
'operationId' => list_plugins,
|
|
|
get => #{
|
|
|
+ summary => <<"List all installed plugins">>,
|
|
|
description =>
|
|
|
- "List all install plugins.<br/>"
|
|
|
"Plugins are launched in top-down order.<br/>"
|
|
|
- "Using `POST /plugins/{name}/move` to change the boot order.",
|
|
|
+ "Use `POST /plugins/{name}/move` to change the boot order.",
|
|
|
tags => ?TAGS,
|
|
|
responses => #{
|
|
|
200 => hoconsc:array(hoconsc:ref(plugin))
|
|
|
@@ -82,8 +82,9 @@ schema("/plugins/install") ->
|
|
|
#{
|
|
|
'operationId' => upload_install,
|
|
|
post => #{
|
|
|
+ summary => <<"Install a new plugin">>,
|
|
|
description =>
|
|
|
- "Install a plugin(plugin-vsn.tar.gz)."
|
|
|
+ "Upload a plugin tarball (plugin-vsn.tar.gz)."
|
|
|
"Follow [emqx-plugin-template](https://github.com/emqx/emqx-plugin-template) "
|
|
|
"to develop plugin.",
|
|
|
tags => ?TAGS,
|
|
|
@@ -112,7 +113,8 @@ schema("/plugins/:name") ->
|
|
|
#{
|
|
|
'operationId' => plugin,
|
|
|
get => #{
|
|
|
- description => "Describe a plugin according `release.json` and `README.md`.",
|
|
|
+ summary => <<"Get a plugin description">>,
|
|
|
+ description => "Describs plugin according to its `release.json` and `README.md`.",
|
|
|
tags => ?TAGS,
|
|
|
parameters => [hoconsc:ref(name)],
|
|
|
responses => #{
|
|
|
@@ -121,7 +123,8 @@ schema("/plugins/:name") ->
|
|
|
}
|
|
|
},
|
|
|
delete => #{
|
|
|
- description => "Uninstall a plugin package.",
|
|
|
+ summary => <<"Delete a plugin">>,
|
|
|
+ description => "Uninstalls a previously uploaded plugin package.",
|
|
|
tags => ?TAGS,
|
|
|
parameters => [hoconsc:ref(name)],
|
|
|
responses => #{
|
|
|
@@ -134,6 +137,7 @@ schema("/plugins/:name/:action") ->
|
|
|
#{
|
|
|
'operationId' => update_plugin,
|
|
|
put => #{
|
|
|
+ summary => <<"Trigger action on an installed plugin">>,
|
|
|
description =>
|
|
|
"start/stop a installed plugin.<br/>"
|
|
|
"- **start**: start the plugin.<br/>"
|
|
|
@@ -153,6 +157,7 @@ schema("/plugins/:name/move") ->
|
|
|
#{
|
|
|
'operationId' => update_boot_order,
|
|
|
post => #{
|
|
|
+ summary => <<"Move plugin within plugin hiearchy">>,
|
|
|
description => "Setting the boot order of plugins.",
|
|
|
tags => ?TAGS,
|
|
|
parameters => [hoconsc:ref(name)],
|