F1 (Java) Story 16 Implement /projects/{id}/wip-resources API endpoint

Description

WIP resources are work-in-progress resources that the CP creates and modifies during the CP lifecycle. They are contained in the CP dedicated namespace, so they are not visible in the OSDU SOR namespace until published at the end of the CP. OSDU users create WIP resources in OSDU using direct requests to the OSDU Storage and DDMSs API. The only way to get a list of the WIP resources for the CP is to query the OSDU Search service API.

So, there is only need for a single API method:

GET /projects/{id}/wip-resources

That returns a JSON array of WIP resource record IDs

Acceptance criteria

  • API-method is implemented
  • It is documented and visible in OpenAPI
  • It returns a real (or mocked) list of WIP resources for a given CP ID

Testing scenarios

  • unit tests for all added Controller methods
  • integration tests for ALL added methods (with a mocked or real backend)

Technical notes

Edited Mar 06, 2024 by Rostislav Dublin (EPAM)
Assignee Loading
Time tracking Loading