Install Plugin Dynamically
Imports a plug-in. If a plug-in with the same name is already installed, the import will fail unless the overwrite parameter is set to true. The plug-in binary content must be available as multi-part content (see RFC-2387 for details). Details of working with multi-part resources depend on the used client HTTP/REST library. For example, in Spring it will look like:
Sample client code:
-------------------
String url = "https://localhost:8281/vco/api/plugins/";
MultiValueMapparts = new LinkedMultiValueMap ();
Resource r = new FileSystemResource("D:/path/to/plugin.dar");
parts.put("file", Arrays.asList(r));
parts.put("categoryId", "");
new RestTemplate().postForLocation(url, parts);
-------------------
In a clustered setup this may not function properly. Use the ControlCenter's API instead - https://localhost:8283/vco-controlcenter/docs/#/plugin-controller.
No content
Request is not valid (validation error)
User is not authenticated
User is not authorized
Plug-in already exists