From: niamhcore Date: Fri, 13 Nov 2020 15:29:27 +0000 (+0000) Subject: Fixing errors in openapi.yaml X-Git-Tag: 0.0.1~114 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=0faa2695763f279f6329f56d7d2c6376292de5a3;p=cps.git Fixing errors in openapi.yaml https://jira.onap.org/browse/CPS-83 Issue-ID: CPS-83 Signed-off-by: niamhcore Change-Id: I665b829b65cebcec6f03951aa1c8a91f59f2269b --- diff --git a/cps-rest/docs/api/swagger/openapi.yml b/cps-rest/docs/api/swagger/openapi.yml index 9b2ac1ec5d..82f47c088f 100644 --- a/cps-rest/docs/api/swagger/openapi.yml +++ b/cps-rest/docs/api/swagger/openapi.yml @@ -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 diff --git a/cps-rest/src/main/java/org/onap/cps/rest/controller/CpsRestController.java b/cps-rest/src/main/java/org/onap/cps/rest/controller/CpsRestController.java index 90c287cdaf..f0c5fcbc43 100644 --- a/cps-rest/src/main/java/org/onap/cps/rest/controller/CpsRestController.java +++ b/cps-rest/src/main/java/org/onap/cps/rest/controller/CpsRestController.java @@ -93,13 +93,12 @@ public class CpsRestController implements CpsRestApi { } @Override - public ResponseEntity getNode(@Valid String body, String dataspaceName) { + public ResponseEntity getNode(String dataspaceName) { return null; } @Override - public ResponseEntity getNodeByDataspaceAndAnchor(@Valid String body, String dataspaceName, - String anchorName) { + public ResponseEntity getNodeByDataspaceAndAnchor(String dataspaceName, String anchorName) { return null; }