F1 (Java) Story 08: Business logic and persistence layer for CollaborationProject
Description
As a developer, I need to implement the Project service and persistence layers classes;
This is to facilitate the /projects API, successfully controlling operations for GET
, POST
(READ and CREATE operations) API endpoints.
Acceptance Criteria
- The
ProjectService
class should be established with methods that handleGET
andPOST
operations. - A
ProjectRepository
class is required to save changes in the persistent store and read from it. - All payloads must be passed through validators, and modifications should be saved when validations pass.
Testing Scenarios
- Test the
GET
andPOST
methods of theProjectService
class with both valid and invalid payloads. - Each validator should be intensively tested with varied payloads to ensure correct validations and modifications.
- The
ProjectRepository
needs to be tested to ensure that all types of data change are correctly saved and read back.
Technical Notes
- For data store-read from OSDU use Storage client from os-core-common lib
Edited by Rostislav Dublin (EPAM)