diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2021-11-23 14:56:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-11-23 14:56:49 +0000 |
commit | a84a4aa84fd22af9b89424d776a18a98d7515bd2 (patch) | |
tree | 002b2d3b6a77c6a96b6f2ef1a6057e9d8445d386 /cps-rest/src/main/java/org | |
parent | f7b414e85fe4bd4a227e24cc4bbccd9568b188fa (diff) | |
parent | 09c6b6e1fa2684c913d7b904f7c7ad6b26b04ef1 (diff) |
Merge "CPS-314: Delete Dataspace"
Diffstat (limited to 'cps-rest/src/main/java/org')
-rwxr-xr-x | cps-rest/src/main/java/org/onap/cps/rest/controller/AdminRestController.java | 12 |
1 files changed, 12 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 55fdbbe87a..52e64a95bd 100755 --- 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 @@ -71,6 +71,18 @@ public class AdminRestController implements CpsAdminApi { } /** + * Delete a dataspace. + * + * @param dataspaceName name of dataspace to be deleted + * @return a {@Link ResponseEntity} of {@link HttpStatus} NO_CONTENT + */ + @Override + public ResponseEntity<Void> deleteDataspace(final String dataspaceName) { + cpsAdminService.deleteDataspace(dataspaceName); + return new ResponseEntity<>(HttpStatus.NO_CONTENT); + } + + /** * Create a {@link SchemaSet}. * * @param multipartFile multipart file |