Implement endpoints to CRUD Rock Compressibility (data)
Implement POST/api/rafs-ddms/rockcompressibility/{record_id}/data is implemented and available on Swagger
- record_id is the SamplesAnalysis WPC which was created previously
- User should be able to fill the SamplesAnalysis report with measurements taken in this analysis
- Successful response (200 status code) should update SamplesAnalysis record and include DDMSDatasets array with GET endpoint to the linked bulk data of nmr
- Validation cases should be covered with appropriate status codes
- Request & response structure should correspond to populated JSON
Implement GET/api/rafs-ddms/WaterGasRelativePermeability/{record_id}/data endpoint is implemented and available on Swagger
- record_id is the SamplesAnalysis WPC
- User should be able to retrieve bulk data of rockcompressibility using new endpoint
- Successful response (200 status code) should retrieve all existing rockcompressibility Measurements (bulk data) linked to specified record id (SamplesAnalysis WPC)
- Validation cases should be covered with appropriate status codes
- Structure of request and response should correspond to populated JSON content schema
Click to expand
"SamplesAnalysisID": "osdu:work-product-component--SamplesAnalysisID:dd76cf6c-226f-5636-ad1b-1ca0f8249cc8",
"SampleID": "osdu:master-data--Samples:4b",
"CompressibilityTestSteps": [
{
"StepNumber": 1,
"ConfiningStress": {
"Value": 400,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"Porosity": {
"Value": 33.4,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25"
},
"Compressibility": [
{
"CompressibilityType": "opendes:reference-data--CompressibilityMeasurementType:Hydrostatic",
"Value": 0.0000384,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pv/pv/psi"
},
{
"CompressibilityType": "opendes:reference-data--CompressibilityMeasurementType:Uniaxial",
"Value": 0.0000234,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pv/pv/psi"
}
]
}
}