Fix the JaxRs 49/37449/2
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Wed, 21 Mar 2018 12:13:43 +0000 (13:13 +0100)
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>
Thu, 22 Mar 2018 08:22:56 +0000 (09:22 +0100)
Fix the JaxRs endpoints that were wrong

Issue-ID: CLAMP-141
Change-Id: Ibb2598e0c3460f72961048edbf93d1717473b0bb
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
src/main/java/org/onap/clamp/clds/service/CldsService.java

index 9d6cb08..7eff681 100644 (file)
@@ -806,8 +806,8 @@ public class CldsService extends SecureServiceBase {
     @Path("/deploy/{modelName}")
     @Consumes(MediaType.APPLICATION_JSON)
     @Produces(MediaType.APPLICATION_JSON)
-    public Response deployModel(@PathParam("action") String action, @PathParam("modelName") String modelName,
-            @QueryParam("test") String test, CldsModel model) {
+    public Response deployModel(@PathParam("modelName") String modelName,
+            CldsModel model) {
         Date startTime = new Date();
         LoggingUtils.setRequestContext("CldsService: Deploy model", getPrincipalName());
         Boolean errorCase = false;
@@ -874,8 +874,8 @@ public class CldsService extends SecureServiceBase {
     @Path("/undeploy/{modelName}")
     @Consumes(MediaType.APPLICATION_JSON)
     @Produces(MediaType.APPLICATION_JSON)
-    public Response unDeployModel(@PathParam("action") String action, @PathParam("modelName") String modelName,
-            @QueryParam("test") String test, CldsModel model) {
+    public Response unDeployModel(@PathParam("modelName") String modelName,
+            CldsModel model) {
         Date startTime = new Date();
         LoggingUtils.setRequestContext("CldsService: Undeploy model", getPrincipalName());