Implement endpoints to CRUD electrical properties (record)

POST/api/rafs-ddms/electricalproperties endpoint is implemented and available on Swagger

  • User should be able to create the SamplesAnalysis WPC using new endpoint
  • Successful response (200 status code) should create the SamplesAnalysis work product component
  • SamplesAnalysis should be successfully created with:
  1. System Properties
  2. Data
  3. Metadata of existing inherited WKS OSDU schemas
  • Schema from KB should be registered and validation should happen against it
  • 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

GET/api/rafs-ddms/electricalproperties/{record_id} endpoint is implemented and available on Swagger

  • User should be able to retrieve specific electricalproperties 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
  • Structure of request and response should correspond to populated JSON from KB.
  • User should be able to retrieve the particular version of the record with GET/api/rafs-ddms/electricalproperties/{record_id}/{version}

DELETE /api/rafs-ddms/electricalproperties/{record_id} endpoint is implemented and available on Swagger

  • The user should be able to soft delete a record
  • Validation cases should be covered with appropriate status codes
  • 204 response should successfully indicate a deleted record
Click to expand
"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",
"data": {
    "SampleIDs": [
        "osdu:master-data--Sample:dd76cf6c-226f-5636-ad1b-1ca0f8249cc10",
        "osdu:master-data--Sample:dd76cf6c-226f-5636-ad1b-1ca0f8249cc11"
    ],
    "ReportSampleIdentifiers": [
        "45H",
        "49H"
     ],
    "AnalysisDate": "08-02-2013",
    "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": "opendes:reference-data--SampleAnalysisFamily:ElectricalProperties"            
        "RockSampleAnalysisMethodID": "opendes:reference-data--SampleAnalysisMethod:TBD",
        "RockSampleAnalysisMeasurementID": "opendes:reference-data--SampleAnalysisMeasurement:TBD",
        "SamplesAnalysisTypeIDs": [
            "opendes:reference-data--SampleAnalysisType:Geochemistry.OtherMethods",
        ]
    },        
    "SamplesAnalysisCategoryTagIDs": [
        "SCAL",
        "Electrical Properties",
    ],
    "AvailableSampleAnalysisProperties": [
        "BrineConcentration",
        "AdjustedFormationFactor",
        "CementationExponent",
        "AdjustedCemetationExponent",
        "SaturationExponent",
        "AdjustedSaturationExponent",
    ],
    "DDMSDataset": [
        "Measurements": "https://<vhostname>.stable-epm-osdu.centralus.cloudapp.azure.com/api/rafs ddms/v1/Electricalproperties/get_electricalproperties_data_record_id/45"
    ]
}

}

Edited Jul 11, 2023 by Mykhailo Buriak
Assignee Loading
Time tracking Loading