Adding plugin listing
This commit is contained in:
parent
665a32d802
commit
f38f846ebe
|
@ -42,6 +42,14 @@ public class RestSmartExecutor {
|
|||
private static final String UUID_PATH_PARAM = "uuid";
|
||||
private static final String PLUGIN_NAME_PATH_PARAM = "pluginName";
|
||||
|
||||
@GET
|
||||
@Path("")
|
||||
@Produces(ResourceInitializer.APPLICATION_JSON_CHARSET_UTF_8)
|
||||
public String list() throws ExecutorException {
|
||||
CalledMethodProvider.instance.set(HttpMethod.GET + " /" + RestConstants.PLUGINS_PATH_PART);
|
||||
return "[]";
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/{" + PLUGIN_NAME_PATH_PARAM + "}")
|
||||
@Consumes({MediaType.TEXT_PLAIN, ResourceInitializer.APPLICATION_JSON_CHARSET_UTF_8})
|
||||
|
|
Loading…
Reference in New Issue