diff options
author | 2020-12-10 10:49:59 +0200 | |
---|---|---|
committer | 2021-01-06 15:03:59 +0200 | |
commit | 5a8718b84dbd3c6fa78aa644a4695274a0a1ab5d (patch) | |
tree | 4dbd96f90aee895053036d5616a00b9912dcde82 /cps-rest/src/main | |
parent | ec3e17505d12785586fc2418438c3d45b63d7dbd (diff) |
Create dataspace
Issue-ID: CPS-134
Change-Id: Ie7f00f9c322a12a6c2a71c1407f6970a7dd24d2d
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Diffstat (limited to 'cps-rest/src/main')
-rw-r--r-- | cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java | 6 |
1 files changed, 6 insertions, 0 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 6dc2cee72..9549580ba 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 @@ -47,6 +47,12 @@ public class AdminRestController implements CpsAdminApi { private ModelMapper modelMapper; @Override + public ResponseEntity<String> createDataspace(final String dataspaceName) { + cpsAdminService.createDataspace(dataspaceName); + return new ResponseEntity<>(dataspaceName, HttpStatus.CREATED); + } + + @Override public ResponseEntity<String> createSchemaSet(final String schemaSetName, final MultipartFile multipartFile, final String dataspaceName) { cpsModuleService.createSchemaSet(dataspaceName, schemaSetName, extractYangResourcesMap(multipartFile)); |