Implement POST endpoint for Relative Permeability WPC (SamplesAnalysis)
- POST/api/rafs-ddms/relativepermeabilitytests endpoint is implemented and available on Swagger
- User should be able to create the SamplesAnalysis WPC using new endpoint
- Successful respose (200 status code) should create the SamplesAnalysis work product component
- SamplesAnalysis should be successfully created with:
- System Properties
- Data
- Metadata of existing inherited WKS OSDU schemas
- Schema from KB should registered and validation should happen against it
- Response should be returned in interval of 0.1-1 second
- Structure of request and response should correspond to schema from KB documentation
- Existing SamplesAnalysesReport can be linked to SamplesAnalysis via the id in the array ParentSamplesAnalysesReportIDs
Relative Permeability WPC Schema 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": "RelativePermeability",
"RockSampleAnalysisMethodID": "SteadyStateDrainageOilWater",
"SamplesAnalysisTypeIDs": [
"RelativePermeability.SteadyStateDrainageOilWater.RelativePermeabilityOilWater"
]
},
"SamplesAnalysisCategoryTagIDs": [
"RelPerm",
"Relative Permeability",
"SCAL"
],
"AvailableSampleAnalysisProperties": [
"Depth",
"TestTemperature",
"NetConfiningStress",
"InitialSaturation",
"Length",
"Area",
"Porosity",
"InitialWaterSaturation",
"EffectivePermeabilityToOil",
"Permeability"
],
"DDMSDataset": [
"Measurements": "https://<vhostname>.stable-epm-osdu.centralus.cloudapp.azure.com/api/rafs ddms/v1/RelPermeability/get_relpermeability_data_record_id/45"
]
}
Edited by Michael Jones