feat: install new plugin
Regaez opened this issue · 0 comments
Regaez commented
Expose an authenticated endpoint, POST /plugins
which allows an admin to install a new plugin on the site.
Request Body:
Required fields:
id
: the "plugin name" as per GPM
They also have the option of providing an attributes
field which will be applied after the installation of the plugin. If not provided, then the plugin will use its default configuration.
{
"id": "{{plugin_name}}",
"attributes": {
// some initial configuration settings
"enabled": false
}
}