diff options
Diffstat (limited to 'cps-rest/src')
3 files changed, 4 insertions, 4 deletions
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; } diff --git a/cps-rest/src/test/groovy/org/onap/cps/rest/controller/AdminRestControllerSpec.groovy b/cps-rest/src/test/groovy/org/onap/cps/rest/controller/AdminRestControllerSpec.groovy index 078253a64e..0a61c7dd59 100644 --- a/cps-rest/src/test/groovy/org/onap/cps/rest/controller/AdminRestControllerSpec.groovy +++ b/cps-rest/src/test/groovy/org/onap/cps/rest/controller/AdminRestControllerSpec.groovy @@ -122,7 +122,7 @@ class AdminRestControllerSpec extends Specification { MockMvcRequestBuilders .multipart(schemaSetsEndpoint) .file(multipartFile) - .param('schemaSetName', 'test-schema-set') + .param('schema-set-name', 'test-schema-set') ).andReturn().response } |