From 5a8718b84dbd3c6fa78aa644a4695274a0a1ab5d Mon Sep 17 00:00:00 2001 From: Ruslan Kashapov Date: Thu, 10 Dec 2020 10:49:59 +0200 Subject: Create dataspace Issue-ID: CPS-134 Change-Id: Ie7f00f9c322a12a6c2a71c1407f6970a7dd24d2d Signed-off-by: Ruslan Kashapov --- .../main/java/org/onap/cps/rest/controller/AdminRestController.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cps-rest/src/main') 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 6dc2cee72a..9549580bac 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 @@ -46,6 +46,12 @@ public class AdminRestController implements CpsAdminApi { @Autowired private ModelMapper modelMapper; + @Override + public ResponseEntity createDataspace(final String dataspaceName) { + cpsAdminService.createDataspace(dataspaceName); + return new ResponseEntity<>(dataspaceName, HttpStatus.CREATED); + } + @Override public ResponseEntity createSchemaSet(final String schemaSetName, final MultipartFile multipartFile, final String dataspaceName) { -- cgit 1.2.3-korg