-
Story
-
Resolution: Done
-
Low
-
None
Delete Dataspace by name(id)
Implement
- REST Endpoint in CPS-Core
- Java Api method in CPS-Service
- Data Persistence Service
- using JPA https://spring.io/projects/spring-data-jpa
- DB Integration Test, see https://wiki.onap.org/display/DW/CPS+Persistence+layer+testing
Condition before delete: all anchors should have been deleted
Open Issue
- will SchemaSets automatically be deleted once all anchors using them heven been deletes
Implementation Proposal
https://wiki.onap.org/display/DW/Implementation+Proposal+for+Delete+Dataspace
A/C
- Dataspace is removed from dataspace table (can only be shown through SQL client)
- JAVA API wil throw exception if not all anchors have been deleted first
- REST API should return XXX statusCode if not all anchors have been deleted first
- statusCode to be agreed and documented here: https://wiki.onap.org/display/DW/CPS+Exceptions+and+REST+API+HTTP+Response+Codes
- REST API should return 400 statusCode if dataspace(name) does not exist (like #5 in page above)
- mentioned in
-
Page Loading...