summaryrefslogtreecommitdiffstats
path: root/engine-d/src
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2018-09-17 09:37:03 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2018-09-17 09:37:03 +0800
commitcb0bf80005cf9d0feb22d5985542d41e7657adc8 (patch)
treed120acc3ecfabd624fdc3d5565f7b2618d682bba /engine-d/src
parenta917068127e08475710567f5fb3ea6b40c832449 (diff)
Remove 2 APIs from Swagger.json
Change-Id: I60826b697c26b40a84fefd85e3ed7bda58d12212 Issue-ID: HOLMES-168 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d/src')
-rw-r--r--engine-d/src/main/java/org/onap/holmes/engine/resources/EngineResources.java2
-rw-r--r--engine-d/src/main/resources/swagger.json72
2 files changed, 0 insertions, 74 deletions
diff --git a/engine-d/src/main/java/org/onap/holmes/engine/resources/EngineResources.java b/engine-d/src/main/java/org/onap/holmes/engine/resources/EngineResources.java
index 0d26b6e..3bfb2e8 100644
--- a/engine-d/src/main/java/org/onap/holmes/engine/resources/EngineResources.java
+++ b/engine-d/src/main/java/org/onap/holmes/engine/resources/EngineResources.java
@@ -57,7 +57,6 @@ public class EngineResources {
DroolsEngine droolsEngine;
@PUT
- @ApiOperation(value = "Deploy a rule into the Drools engine.", response = CorrelationRuleResponse.class)
@Produces(MediaType.APPLICATION_JSON)
@Timed
public CorrelationRuleResponse deployRule(
@@ -99,7 +98,6 @@ public class EngineResources {
}
@DELETE
- @ApiOperation(value = "Undeploy a rule from the Drools engine.")
@Produces(MediaType.APPLICATION_JSON)
@Timed
@Path("/{packageName}")
diff --git a/engine-d/src/main/resources/swagger.json b/engine-d/src/main/resources/swagger.json
index 6cb8eaf..e1719ea 100644
--- a/engine-d/src/main/resources/swagger.json
+++ b/engine-d/src/main/resources/swagger.json
@@ -53,78 +53,6 @@
}
}
}
- },
- "put" : {
- "tags" : [ "Holmes Engine Management" ],
- "summary" : "Deploy a rule into the Drools engine.",
- "description" : "",
- "operationId" : "deployRule",
- "produces" : [ "application/json" ],
- "parameters" : [ {
- "in" : "body",
- "name" : "body",
- "description" : "The request entity of the HTTP call, which comprises three fields: \"content\" , \"loopcontrolname\" and \"engineid\". The \"content\" should be a valid Drools rule string and the \"engineid\" has to be \"engine-d\" in the Amsterdam release.",
- "required" : true,
- "schema" : {
- "$ref" : "#/definitions/DeployRuleRequest"
- }
- } ],
- "responses" : {
- "200" : {
- "description" : "successful operation",
- "schema" : {
- "$ref" : "#/definitions/CorrelationRuleResponse"
- }
- }
- }
- }
- },
- "/rule/{packageName}" : {
- "delete" : {
- "tags" : [ "Holmes Engine Management" ],
- "summary" : "Undeploy a rule from the Drools engine.",
- "description" : "",
- "operationId" : "undeployRule",
- "produces" : [ "application/json" ],
- "parameters" : [ {
- "name" : "packageName",
- "in" : "path",
- "required" : true,
- "type" : "string"
- } ],
- "responses" : {
- "200" : {
- "description" : "successful operation",
- "schema" : {
- "type" : "boolean"
- }
- }
- }
- }
- }
- },
- "definitions" : {
- "CorrelationRuleResponse" : {
- "type" : "object",
- "properties" : {
- "package" : {
- "type" : "string"
- }
- }
- },
- "DeployRuleRequest" : {
- "type" : "object",
- "required" : [ "content", "loopcontrolname" ],
- "properties" : {
- "content" : {
- "type" : "string"
- },
- "engineid" : {
- "type" : "string"
- },
- "loopcontrolname" : {
- "type" : "string"
- }
}
}
}