Implement endpoints to CRUD Water-Gas Relative Permeability (data)
Implement POST/api/rafs-ddms/watergasrelativepermeability/{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 watergasrelativepermeability
- 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 watergasrelativepermeability using new endpoint
- Successful response (200 status code) should retrieve all existing WaterGasRelativePermeability 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:47a",
"InitialConditions": [
{
"WaterSaturation": {
"Value": 8.6,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25"
},
"GasSaturation": {
"Value": 91.4,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25"
},
"Permeability": [
{
"PermeabilityType": "opendes:reference-data--PermeabilityMeasurementType:Gas",
"Value": 5380,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:md"
}
]
}
],
"TerminalConditions": [
{
"GasSaturation": {
"Value": 20.3,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25"
},
"Permeability": [
{
"PermeabilityType":"opendes:reference-data--PermeabilityMeasurementType:Water",
"Value": 1687,
"UnitOfMeasure":"opendes:reference-data--UnitOfMeasure:md"
},
{
"PermeabilityType": "opendes:reference-data--PermeabilityMeasurementType:RelativeWater",
"Value": 0.285,
"UnitOfMeasure":"opendes:reference-data--UnitOfMeasure:%25"
}
],
"PctOfOriginalGasInPlace": {
"Value": 71.0,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25"
},
"PctOfInitialGasInPlace": {
"Value": 77.7,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25"
}
}
]
}
Edited by Vsevolod Svirin