Remove annotations in models
[policy/models.git] / models-interactions / model-simulators / src / main / java / org / onap / policy / simulators / SoSimulatorJaxRs.java
index 3d21878..9575419 100644 (file)
@@ -5,6 +5,7 @@
  * Copyright (C) 2017-2021 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2019 Nordix Foundation.
  * Modifications Copyright (C) 2020 Wipro Limited.
+ * Modifications Copyright (C) 2022 CTC, Inc. and others.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -22,7 +23,6 @@
 
 package org.onap.policy.simulators;
 
-import io.swagger.annotations.ApiParam;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -77,7 +77,7 @@ public class SoSimulatorJaxRs {
     @Produces("application/json")
     public String soPostQuery(@PathParam("serviceInstanceId") final String serviceInstanceId,
                     @PathParam("vnfInstanceId") final String vnfInstanceId,
-                    @ApiParam(required = true) SoRequest request) {
+                    SoRequest request) {
 
         List<Map<String, String>> userParam = null;
         userParam = request.getRequestDetails().getRequestParameters().getUserParams();
@@ -130,10 +130,18 @@ public class SoSimulatorJaxRs {
     @Path("/3gppservices/v7/modify")
     @Consumes(MediaType.APPLICATION_JSON)
     @Produces("application/json")
-    public String soPost3gpp(@ApiParam(required = true) SoRequest3gpp request) {
+    public String soPost3gpp(SoRequest3gpp request) {
         return ResourceUtils.getResourceAsString("org/onap/policy/simulators/so/so.3gpp.success.json");
     }
 
+    @PUT
+    @Path("/infra/serviceIntent/v1/modify")
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Produces("application/json")
+    public String soPostModifyCll(SoRequest3gpp request) {
+        return ResourceUtils.getResourceAsString("org/onap/policy/simulators/so/so.cll.success.json");
+    }
+
     private String makeStarted() {
         var requestId = UUID.randomUUID().toString();