-
Story
-
Resolution: Done
-
Medium
-
None
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:
- user provides non-existing dataspace name,
- { "status": "400 BAD_REQUEST", "message": "Dataspace not found", "details": "Dataspace with name a does not exist." }
- user provides invalid dataspace name
-
- { "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