Fixing errors in openapi.yaml 86/114886/2
authorniamhcore <niamh.core@est.tech>
Fri, 13 Nov 2020 15:29:27 +0000 (15:29 +0000)
committerNiamh Core <niamh.core@est.tech>
Mon, 16 Nov 2020 09:35:59 +0000 (09:35 +0000)
https://jira.onap.org/browse/CPS-83

Issue-ID: CPS-83

Signed-off-by: niamhcore <niamh.core@est.tech>
Change-Id: I665b829b65cebcec6f03951aa1c8a91f59f2269b

cps-rest/docs/api/swagger/openapi.yml
cps-rest/src/main/java/org/onap/cps/rest/controller/CpsRestController.java

index 9b2ac1e..82f47c0 100644 (file)
@@ -198,13 +198,6 @@ paths:
           required: true
           schema:
             type: string
-      requestBody:
-        description: xpath
-        content:
-          application/json:
-            schema:
-              type: string
-        required: true
       responses:
         200:
           description: OK
@@ -317,13 +310,6 @@ paths:
           required: true
           schema:
             type: string
-      requestBody:
-        description: requestBody
-        content:
-          application/json:
-            schema:
-              type: string
-        required: true
       responses:
         200:
           description: OK
index 90c287c..f0c5fcb 100644 (file)
@@ -93,13 +93,12 @@ public class CpsRestController implements CpsRestApi {
     }
 
     @Override
-    public ResponseEntity<Object> getNode(@Valid String body, String dataspaceName) {
+    public ResponseEntity<Object> getNode(String dataspaceName) {
         return null;
     }
 
     @Override
-    public ResponseEntity<Object> getNodeByDataspaceAndAnchor(@Valid String body, String dataspaceName,
-        String anchorName) {
+    public ResponseEntity<Object> getNodeByDataspaceAndAnchor(String dataspaceName, String anchorName) {
         return null;
     }