F1 (Java) Story 29: implement get WIP resources service method
Description
Implement service methods to request lists of WIP-resources for the CP from Search service. It should be triggered by the API: #72 (closed)
See discussion in the https://gitlab.opengroup.org/osdu/subcommittees/data-def/work-products/schema/-/issues/644 issue
While the ADR #114 "Namespace-per-Kind & Kind-per-Namespace inventory features" for the optimal WIP-data inventory and retrieval is pending and no means for the optimal cross-kind data retrieval in a collaboration namespace exist, we need a simplified "MVP-grade" temporary solution. For this, we can sequentially consume Schema and Search services API:
For searching WIP resources we should use Search Service and use kind "osdu:wks:*:*"
Acceptance criteria
Service methods are implemented so when /wip-resources API is consumed they are invoked and requesting Search for the records in the CP's namespace.
Testing scenarios
- unit tests
- get wip-resources for the CP