@Path(value="plugins")
public interface IPluginResource
| Modifier and Type | Method and Description |
|---|---|
io.apiman.manager.api.beans.plugins.PluginBean |
create(io.apiman.manager.api.beans.plugins.NewPluginBean bean)
Use this endpoint to add a plugin to apiman.
|
void |
delete(Long pluginId)
Call this endpoint to delete a plugin.
|
io.apiman.manager.api.beans.plugins.PluginBean |
get(Long pluginId)
This endpoint can be used to access the full information about an apiman
plugin.
|
List<io.apiman.manager.api.beans.summary.PolicyDefinitionSummaryBean> |
getPolicyDefs(Long pluginId)
Use this endpoint to get a list of all policy definitions contributed by the plugin.
|
String |
getPolicyForm(Long pluginId,
String policyDefId)
Use this endpoint to retrieve the form associated with a particular policy
definition.
|
List<io.apiman.manager.api.beans.summary.PluginSummaryBean> |
list()
This endpoint returns a list of all plugins that have been added to the
system.
|
@GET @Produces(value="application/json") List<io.apiman.manager.api.beans.summary.PluginSummaryBean> list() throws NotAuthorizedException
NotAuthorizedException - when not authorized to invoke this method@POST
@Consumes(value="application/json")
@Produces(value="application/json")
io.apiman.manager.api.beans.plugins.PluginBean create(io.apiman.manager.api.beans.plugins.NewPluginBean bean)
throws PluginAlreadyExistsException,
PluginNotFoundException,
NotAuthorizedException
bean - The plugin to add.PluginAlreadyExistsException - when attempting to create a plugin that
already existsPluginNotFoundException - when specified plugin not foundNotAuthorizedException - when not authorized to invoke this method@GET
@Path(value="{pluginId}")
@Produces(value="application/json")
io.apiman.manager.api.beans.plugins.PluginBean get(@PathParam(value="pluginId")
Long pluginId)
throws PluginNotFoundException,
NotAuthorizedException
pluginId - the plugin idPluginNotFoundException - when specified plugin not foundNotAuthorizedException - when not authorized to invoke this method@DELETE
@Path(value="{pluginId}")
void delete(@PathParam(value="pluginId")
Long pluginId)
throws PluginNotFoundException,
NotAuthorizedException
pluginId - the plugin id The plugin's ID.PluginNotFoundException - when specified plugin not foundNotAuthorizedException - when not authorized to invoke this method@GET
@Path(value="{pluginId}/policyDefs")
@Produces(value="application/json")
List<io.apiman.manager.api.beans.summary.PolicyDefinitionSummaryBean> getPolicyDefs(@PathParam(value="pluginId")
Long pluginId)
throws PluginNotFoundException
pluginId - the plugin id The plugin ID.PluginNotFoundException - when specified plugin not found@GET
@Path(value="{pluginId}/policyDefs/{policyDefId}/form")
@Produces(value="application/json")
String getPolicyForm(@PathParam(value="pluginId")
Long pluginId,
@PathParam(value="policyDefId")
String policyDefId)
throws PluginNotFoundException,
PolicyDefinitionNotFoundException,
PluginResourceNotFoundException
pluginId - the plugin id The plugin ID.policyDefId - The policy definition ID.PluginNotFoundException - when specified plugin not foundPolicyDefinitionNotFoundException - when trying to get, update, or delete
a policy definition that does not existPluginResourceNotFoundException - when plugin resource not foundCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.