Implement GET endpoint for CapPressure WPC (SamplesAnalysis)
- GET/api/rafs-ddms/capillarypressuretests/{record_id} endpoint is implemented and available on Swagger
- User should be able to retrieve specific SamplesAnalysis WPC using the new endpoint
- Successful response (200 status code) should retrieve the specified record of SamplesAnalysis work product component with all existing metadata
- Validation cases should be covered with appropriate status codes
- Response should be returned in the interval of 0.1-1 second
- Structure of request and response should correspond to populated JSON from KB.
Note
- If SamplesAnalysesReport is deleted but it was linked to SamplesAnalysis then when SamplesAnalysis is retrieved the ParentSamplesAnalysesReportIDs should be without deleted SamplesAnalysesReport
Capillary Pressure SamplesAnalysis WPC example
"id": "namespace:work-product-component--SamplesAnalysis:c69cf08a-ae35-5984-b855-f9b36ce1ea21",
"kind": "exxonmobil:rafsddms:work-product-component--SamplesAnalysis:1.0.0",
"version": 1562066009929332,
"acl": {
"owners": [
"someone@company.com"
],
"viewers": [
"someone@company.com"
]
},
"legal": {
"legaltags": [
"Example legaltags"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"tags": {
"NameOfKey": "String value"
},
"createTime": "2020-12-16T11:46:20.163Z",
"createUser": "some-user@some-company-cloud.com",
"modifyTime": "2020-12-16T11:52:24.477Z",
"modifyUser": "some-user@some-company-cloud.com",
"meta": [
{
"kind": "Unit",
"name": "m",
"persistableReference": "{\"abcd\":{\"a\":0.0,\"b\":1.0,\"c\":1.0,\"d\":0.0},\"symbol\":\"m\",\"baseMeasurement\":{\"ancestry\":\"L\",\"type\":\"UM\"},\"type\":\"UAD\"}",
"unitOfMeasureID": "namespace:reference-data--UnitOfMeasure:m:",
"propertyNames": [
"VerticalMeasurement.VerticalMeasurement",
"TopDepth",
"BottomDepth"
]
}
]
"data": {
"SampleIDs": [
"osdu:master-data--Sample:dd76cf6c-226f-5636-ad1b-1ca0f8249cc10",
"osdu:master-data--Sample:dd76cf6c-226f-5636-ad1b-1ca0f8249cc11"
],
"ReportSampleIdentifiers": [
"45H",
"49H"
],
"VerticalMeasurement": {
"VerticalMeasurement": 1.80,
"VerticalMeasurementTypeID": "namespace:reference-data--VerticalMeasurementType:KB:",
"VerticalMeasurementPathID": "namespace:reference-data--VerticalMeasurementPath:TrueVerticalDepth:",
"VerticalMeasurementUnitOfMeasureID": "namespace:reference-data--UnitOfMeasure:m:",
"VerticalCRSID": "namespace:reference-data--CoordinateReferenceSystem:Vertical:EPSG::5714:"
},
"AnalysisDate": "08-02-2013",
"TopDepth": 5309.60,
"BottomDepth": 5393.35,
"DepthShiftsID": "TBD",
"LaboratoryIDs": [
"TBD Lab 1",
"TBD Lab 2"
],
"LaboratoryNames": [
"Corelab",
"Weatherford Labs"
],
"Remarks": [
"Temperature 68F",
"Second Remark",
"Third Remark",
],
"DatePublished": "08-02-2016",
"ParentSamplesAnalysesReports": [
"namespace:work-product-component--SamplesAnalysesReport:dd76cf6c-226f-5636-ad1b-1ca0f8249cc8"
],
"RockSampleAnalysis": {
"RockSampleAnalysisFamilyID": "CapillaryPressure",
"RockSampleAnalysisMethodID": "CentrifugeDrainageOilWater",
"SamplesAnalysisTypeIDs": [
"CapillaryPressure.CentrifugeDrainageOilWater.CapillaryPressureOilWater"
]
},
"SamplesAnalysisCategoryTagIDs": [
"CapPressure",
"CapillaryPressure",
"SCAL"
],
"AvailableSampleAnalysisProperties": [
"Depth",
"Permeability",
"Porosity",
"InitialSaturation",
"Remark",
"WaterSaturation"
],
"DDMSDataset": [
"Measurements": "https://<vhostname>.stable-epm-osdu.centralus.cloudapp.azure.com/api/rafs ddms/v1/CapPressure/get_CapPressure_data_record_id/45"
]
}
Edited by Michael Jones