Implement endpoints to support GeoChem -> Fractionation data
Implement POST/api/rafs-ddms/FractionationTests/{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 Fractionation
- 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/FractionationTests/{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 Fractionation 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--SampleAnalysis:dd76cf6c-226f-5636-ad1b-1ca0f8249cc8",
"SampleID": "osdu:master-data--Sample:dd76cf6c-226f-5636-ad1b-1ca0f87454589cc8",
"FractionationSum": {
"Value": 0.169,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:g"
},
"AsphaltenePctOfExtract": {
"Value": 0.756,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"AlkanesPctOfWholeExtract": {
"Value": 0.006,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"AromaticsPctofWholeExtract": {
"Value": 0.009,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"NSOPctOfWholeExtract": {
"Value": 0.0096,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"NonElutedPctOfWholeExtract": {
"Value": 0.0063,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"WeightAlkanes": {
"Value": 0.0085,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"WeightAromatics": {
"Value": 0.0068,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"WeightResins": {
"Value": 0.0045,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"WeightAsphaltenes": {
"Value": 0.0097,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"RecoveryPct": {
"Value": 0.0015,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"NonHydrocarbonsPct": {
"Value": "UnitOfMeasure"
},
"WeightOfHydrocarbons": {
"Value": 0.000984,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"WeightOfNonHydrocarbons": {
"Value": 0.000784,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"NonHydrocarbonsToHydrocarbonsRatio": 0.000975,
"NonHydrocarbonsEOM": {
"Value": 0.0095,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"OilWeightInitial": {
"Value": 0.0000964,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"OilWeightAfterTopping": {
"Value": 0.0084,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"ToppingLossPct": {
"Value": 0.00784,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"WeightOfLoadedAmount": {
"Value": 0.00078,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"RecoveryWeight": {
"Value": 0.0071,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"LossPct": {
"Value": 0.0069,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"LossWeight": {
"Value": 0.0098,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mg"
},
"SaturateNormalizedPct": {
"Value": 0.0095,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"AromaticNormalizedPct": {
"Value": 0.0078,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"NSONormalizedPct": {
"Value": 0.0078,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"AsphalteneNormalizedPct": {
"Value": 0.00784,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"NaphthenesPctOfTotalExtract": {
"Value": 0.0078,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"NParaffinsPctOfTotalExtract": {
"Value": 0.00785,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"VolumePctOfAromaticFraction": {
"Value": 0.00075
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"AsphalteneC5Pct": {
"Value": 0.00045,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"AsphalteneC7Pct": {
"Value": 0.00054,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
},
"IparaffinsPctOfTotalExtract": {
"Value": 0.0069,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:pct%"
}
}
Edited by Mykhailo Buriak