Implement POST endpoint for Relative Permeability (data)
- POST/api/rafs-ddms/relativepermeabilitytests/{record_id}/data is implemented and available on Swagger
- record_id is the SamplesAnalysis WPC
- 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 RelPermeability
- Validation cases should be covered with appropriate status codes
- Response should be returned in interval of 0.1-1 second
- Request & response structure should correspond to populated JSON from KB
Content Schema Example
{
"SamplesAnalysisID": "osdu:work-product-component--SamplesAnalysis:dd76cf6c-226f-5636-ad1b-1ca0f8249cc8",
"SampleID": "osdu:master-data--Sample:dd76cf6c-226f-5636-ad1b-1ca0f8249cc10",
"SampleDepth": {
"Value": 5309.60,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:m"
},
"TestTemperature": {
"Value": 68,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:degF"
},
"NetConfiningStress": {
"Value": 2500,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"Length": {
"Value": 6.07,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:cm"
},
"Area": {
"Value": 11.60,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:sq cm"
},
"Porosity": {
"Value": 0.108,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:fraction"
},
"InitialWaterSaturation": {
"Value": 65.0,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:fraction"
},
"EffectivePermeabilityToOil": {
"Value": 650.25,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:millidarcies"
},
"Permeability": [
{
"PermeabilityType": "opendes:reference-data--PermeabilityMeasurementType:Air",
"Value": 250.0,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:millidarcies"
},
{
"PermeabilityType": "opendes:reference-data--PermeabilityMeasurementType:Specific",
"Value": 124.0,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:millidarcies"
}
]
}
Edited by Michael Jones