XMLWordPrintable

      We want to implement an endpoint which will return a dataspace associated with the provided <dataspace-name>.
      Endpoint:
      GET http://IP:PORT/cps/api/v1/admin/dataspaces/<dataspace-name>
      Body:

      // code placeholder
      {“name”:“data-space1”} 

      For future role based access control we want this to be used through the admin interface of CPS: CPS-E-07
      See https://wiki.onap.org/display/DW/ARC+Configuration+Persistence+Service+%28CPS%29+Component+Description+-+Jakarta-R10

      Error Scenarios:

      1. user provides non-existing dataspace name, 
        1. {     "status": "400 BAD_REQUEST",     "message": "Dataspace not found",     "details": "Dataspace with name a does not exist." }
      2. user provides invalid dataspace name
        1. {    "status": "400 BAD_REQUEST",    "message": "Name or ID Validation Error.",    "details": "<var> invalid token encountered at position 1"}

      A/C:
      New endpoint is created with above body
      Endpoint is located under the admin interface
      Demo

            rajesh.kumar Rajesh kumar
            lukegleeson lukegleeson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: