THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
This will reuse the ConfigKeyInfo
entity which is already exposed via PUT /connector-plugins/{connector-type}/config/validate.
Proposed Changes
REST API:
A new REST resource named PluginsResource will be defined and it will expose the following 2 endpoints under /plugins:
Code Block | ||
---|---|---|
| ||
@GET
@Path("/")
public Map<String, List<PluginInfo>> listPlugins() {
return doListPlugins();
}
@GET
@Path("/{type}/{plugin}/configdef")
public List<ConfigKeyInfo> getConnectorConfigDef(final @PathParam("type") String type, final @PathParam("plugin") String plugin) {
return doGetConfigDef(type, plugin);
} |
Converter interface:
Add a config() method to Converter. Also make it Configurable and Closeable so it's uniform with the other plugins:
Code Block | ||
---|---|---|
| ||
public interface Converter extends Configurable, Closeable {
[...]
/**
* Configuration specification for this set of converters.
* @return the configuration specification; may not be null
*/
ConfigDef config();
} |
Compatibility, Deprecation, and Migration Plan
...