Plugins API Documentation

The PluginsController handles actions related to managing plugins in the system. This includes viewing the list of plugins, enabling/disabling them, and rescanning/reloading the plugins directory.

Controller Route: /api/settings/plugins

All routes within the PluginsController are prefixed by /api/settings/plugins.


Summary of Endpoints

Endpoint Method Description Authorization
/api/settings/plugins/list GET View a list of all available plugins. Admin
/api/settings/plugins/disable POST Disable a specific plugin by name and author. Admin
/api/settings/plugins/enable POST Enable a specific plugin by name and author. Admin
/api/settings/plugins/rescan POST Rescan the plugins folder and reload plugins. Admin
/api/settings/plugins/reload POST Reload all loaded plugins. Admin

Endpoint Details

View Plugins

Fetch a list of all available plugins with their details, including whether they are enabled or disabled.

Details:

Parameters: None

Responses:

Example Request (using curl):

curl -X GET "https://your-api-url.com/api/settings/plugins/list" \
             -H "Authorization: Bearer <JWT-token>"
        

Disable Plugin

Disable a specific plugin by its name and author.

Details:

Parameters:

Responses:

Example Request (using curl):

curl -X POST "https://your-api-url.com/api/settings/plugins/disable?name=ExamplePlugin&author=JohnDoe" \
             -H "Authorization: Bearer <JWT-token>"
        

Enable Plugin

Enable a specific plugin by its name and author.

Details:

Parameters:

Responses:

Example Request (using curl):

curl -X POST "https://your-api-url.com/api/settings/plugins/enable?name=ExamplePlugin&author=JohnDoe" \
             -H "Authorization: Bearer <JWT-token>"
        

Rescan Plugins Folder

Rescan the plugins folder and reload all plugins from the directory.

Details:

Parameters: None

Responses:

Example Request (using curl):

curl -X POST "https://your-api-url.com/api/settings/plugins/rescan" \
             -H "Authorization: Bearer <JWT-token>"
        

Reload Plugins

Reload all the currently loaded plugins.

Details:

Parameters: None

Responses:

Example Request (using curl):

curl -X POST "https://your-api-url.com/api/settings/plugins/reload" \
             -H "Authorization: Bearer <JWT-token>"