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);
-------------------
Request
URI
POST
https://{api_host}/vco/api/plugins/installPluginDynamically
COPY
Request Body
importAction of mimetype application/x-www-form-urlencoded
Optional
Responses
204
No content
Operation doesn't return any data structure
400
Request is not valid (validation error)
Operation doesn't return any data structure
401
User is not authenticated
Operation doesn't return any data structure
403
User is not authorized
Operation doesn't return any data structure
409
Plug-in already exists
Operation doesn't return any data structure
Plugin Service Operations
PUT
Disable Plugin
GET
Export Plugin
POST
Import Plugin
POST
Install Plugin Dynamically
GET
List All Plugins