Implement endpoints to support GeoChem -> Extraction data
Implement POST/api/rafs-ddms/ExtractionTests/{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 Extraction
- 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
Implement GET/api/rafs-ddms/ExtractionTests/{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 Extraction using new endpoint
- Successful response (200 status code) should retrieve all existing Extraction 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
"SamplesAnalysisID": "osdu:work-product-component--SamplesAnalysis:dd76cf6c-226f-5636-ad1b-1ca0f8249cc8",
"SamplesID": "osdu:master-data-SamplesID:dd76cf6c-226f-5636-ad1b-1ca0f8249cc8",
"WeightOfRockExtracted": {
"Value": 0.156,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:g"
},
"WeightOfExtract": {
"Value": 0.000156,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"ExtractPpmByRockWeight": {
"Value": 0.0678,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:ppm"
},
"ExtractPctOfTotalOrganicCarbon": {
"Value": 0.013,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"HydrocarbonPpmOfExtractByWeight": {
"Value": 0.0366,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:ppm"
},
"HydrocarbonsToTotalExtractRatio": 0.36,
"AlkanesToHydrocarbonsRatio": 0.094
}
Edited by Mykhailo Buriak