Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: install new plugin #23

Open
Regaez opened this issue Aug 7, 2019 · 0 comments
Open

feat: install new plugin #23

Regaez opened this issue Aug 7, 2019 · 0 comments
Labels

Comments

@Regaez
Copy link
Owner

Regaez commented Aug 7, 2019

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
  }
}
@Regaez Regaez added the feature label Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant