Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagejava
@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
languagejava
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

...