Implement CRUD endpoints for Extraction records (WPC - SamplesAnalysis)
POST/api/rafs-ddms/Extraction endpoint is implemented and available on Swagger
- User should be able to create the SamplesAnalysis WPC using new endpoint
- Successful respose (200 status code) should create the SamplesAnalysis work product component
- SamplesAnalysis should be successfully created with:
- System Properties
- Data
- Metadata of existing inherited WKS OSDU schemas
- Schema from KB should be registered and validation should happen against it
- Structure of request and response should correspond to schema from KB documentation
- Existing SamplesAnalysesReport can be linked to SamplesAnalysis via the id in the array ParentSamplesAnalysesReportIDs
GET/api/rafs-ddms/relativepermeabilitytests/{record_id} endpoint is implemented and available on Swagger
- User should be able to retrieve specific Extraction WPC using the new endpoint
- Successful response (200 status code) should retrieve the specified record of SamplesAnalysis work product component with all existing metadata
- Validation cases should be covered with appropriate status codes
- Structure of request and response should correspond to populated JSON from KB.
- User should be able to retrieve the particular version of the record with GET/api/rafs-ddms/Extraction/{record_id}/{version}
DELETE /api/rafs-ddms/Extraction/{record_id} endpoint is implemented and available on Swagger
- The user should be able to soft delete a record
- Validation cases should be covered with appropriate status codes
- 204 response should successfully indicate a deleted record
Edited by Siarhei Khaletski (EPAM)