UI Extension (Plugins) API
The /plugins endpoint serves the metadata and static resources (JavaScript modules and CSS) for installed UI extensions/plugins. It is mounted under /opennms/rest/plugins. It is read-only.
GETs (reading data)
| Resource | Description |
|---|---|
|
Lists the installed UI extensions/plugins. Produces |
|
Returns a JavaScript module for the extension identified by |
|
Returns the CSS for the extension identified by |
Examples using cURL
List the installed UI extensions
curl -u admin:admin "http://127.0.0.1:8980/opennms/rest/plugins"
Response
[{"id":"my-plugin","menuEntry":"My Plugin","resourceRootPath":"my-plugin","moduleFileName":"main.js"}]
Fetch an extension’s JavaScript module
curl -u admin:admin "http://127.0.0.1:8980/opennms/rest/plugins/ui-extension/module/my-plugin?path=main.js"
Fetch an extension’s CSS
curl -u admin:admin "http://127.0.0.1:8980/opennms/rest/plugins/ui-extension/css/my-plugin"