From 001e7738f4968ec390ea8af36de019aa87e3c2f2 Mon Sep 17 00:00:00 2001
From: "puthuparambil.aditya" <aditya.puthuparambil@bell.ca>
Date: Wed, 13 Jan 2021 12:06:20 +0000
Subject: Split OpenAPI yaml file

1. components like schema, parameters, responses, requestBodies all moved to components.yml (https://swagger.io/docs/specification/components/)
2. CpAdmin.yml includes the configuration details for cpsAdmin APIs
3. CpsData.yml includes the API configuration details for cpsData

Issue-ID: CPS-155
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I18fb9b8a2be85d180d4625657aca399dbf60b7bc
---
 .../main/java/org/onap/cps/rest/controller/AdminRestController.java   | 4 ++--
 .../main/java/org/onap/cps/rest/controller/DataRestController.java    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'cps-rest/src/main/java/org')

diff --git a/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java b/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java
index 407a767389..4237846ee7 100644
--- a/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java
+++ b/cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java
@@ -54,8 +54,8 @@ public class AdminRestController implements CpsAdminApi {
     }
 
     @Override
-    public ResponseEntity<String> createSchemaSet(final String schemaSetName, final MultipartFile multipartFile,
-        final String dataspaceName) {
+    public ResponseEntity<String> createSchemaSet(final MultipartFile multipartFile,
+        final String schemaSetName, final String dataspaceName) {
         cpsModuleService.createSchemaSet(dataspaceName, schemaSetName, extractYangResourcesMap(multipartFile));
         return new ResponseEntity<>(schemaSetName, HttpStatus.CREATED);
     }
diff --git a/cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java b/cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java
index c637cc6d86..fcb8ddc1c1 100644
--- a/cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java
+++ b/cps-rest/src/main/java/org/onap/cps/rest/controller/DataRestController.java
@@ -38,7 +38,7 @@ public class DataRestController implements CpsDataApi {
     private ModelMapper modelMapper;
 
     @Override
-    public ResponseEntity<Object> createNode(@Valid final MultipartFile multipartFile, final String dataspaceName) {
+    public ResponseEntity<String> createNode(@Valid final MultipartFile multipartFile, final String dataspaceName) {
         return null;
     }
 
-- 
cgit 1.2.3-korg