Delete Dataspace by name(id)

      Implement

      1. REST Endpoint in CPS-Core
      2. Java Api method in CPS-Service
      3. Data Persistence Service
        1. using JPA https://spring.io/projects/spring-data-jpa
        2. 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

      1. 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

      1. Dataspace is removed from dataspace table (can only be shown through SQL client)
      2. JAVA API wil throw exception if not all anchors have been deleted first
      3. REST API should return XXX statusCode if not all anchors have been deleted first
        1. statusCode to be agreed and documented here: https://wiki.onap.org/display/DW/CPS+Exceptions+and+REST+API+HTTP+Response+Codes
      4. REST API should return 400 statusCode if dataspace(name) does not exist (like #5 in page above)

       

            emaclee Lee Anjella Macabuhay
            ToineSiebelink Toine Siebelink
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: