Implement GET endpoint for CapPressure (data)
- GET/api/rafs-ddms/capillarypressuretests/{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 CapPressure using new endpoint
- Successful response (200 status code) should retrieve all existing CapPressure Measurements (bulk data) linked to specified record id (SamplesAnalysis WPC)
- Validation cases should be covered with appropriate status codes
- Response should be returned in interval of 0.1-1 second
- Structure of request and response should correspond to populated JSON content schema
Content Schema Example
"SamplesAnalysisID": "osdu:work-product-component--SamplesAnalysisID:dd76cf6c-226f-5636-ad1b-1ca0f8249cc8",
"TestData": [
{
"SampleID": "^[\\w-.]+:master-data-Sample:dd76cf6c-226f-5636-ad1b-1ca0f8249cc8",
"Depth": {
"Value": 5293.22,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:m"
},
"Permeability": {
"Value": 52.2,
"Type": "Kair",
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:md"
},
"Porosity": {
"Value": 0.266,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct"
},
"InitialSaturation": {
"Value": 1,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct"
},
"Remark": "Test was successfully executed",
"CapPressureSteps": [
{
"StepNumber": "1",
"CapPressure":{
"Value": 2,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psia"
},
"WaterSaturation": {
"Value": 0.978,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct"
}
},
{
"StepNumber": "2",
"CapPressure":{
"Value": 1440,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psia"
},
"WaterSaturation": {
"Value": 0.937,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct"
}
}
],
},
{
"SampleID": "^[\\w-.]+:master-data-Sample:dd8cf6c-226f-5636-ad1b-1ca0f8249cc12",
"Depth": {
"Value": 5293.53,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:m"
},
"Permeability": {
"Value": 88.4,
"Type": "Kair",
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:md"
},
"Porosity": {
"Value": 0.279,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct"
},
"InitialSaturation": {
"Value": 1,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct"
},
"Remark": "Test was successfully executed",
"CapPressureSteps": [
{
"StepNumber": "1",
"CapPressure":{
"Value": 2,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psia"
},
"WaterSaturation": {
"Value": 0.978,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct"
}
},
{
"StepNumber": "2",
"CapPressure":{
"Value": 1450,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psia"
},
"WaterSaturation": {
"Value": 0.968,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct"
}
}
]
}
]
Edited by Michael Jones