Implement CRUD Endpoints to manage triaxial data
Implement POST/api/rafs-ddms/triaxial/{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 triaxial
- Validation cases should be covered with appropriate status codes
- Request & response structure should correspond to populated JSON
Implement GET/api/rafs-ddms/triaxial/{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 nongasisotopes using new endpoint
- Successful response (200 status code) should retrieve all existing triaxial Measurements (bulk data) linked to specified record id (SamplesAnalysis WPC)
- Validation cases should be covered with appropriate status codes
- Structure of request and response should correspond to populated JSON content schema
TRIAX_FULL_Norway-VOLVE-NO_15_9-19_A.xlsx
Register and build schema based on the example below:
Example
"data": [
{
"SampleID": "^[\\w\\-\\.]+:master-data\\-\\-Sample:con438ie",
"Length": {
"Value": 88.84,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mm"
},
"Diameter": {
"Value": 37.808,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mm"
},
"Density": {
"Value": 2.01,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:g2F%cm3"
},
"Time": {
"Value": 123,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:s"
},
"AxialStrain": {
"Value": 0.3661,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mm%2Fmm"
},
"RadialStrain": {
"Value": 1.052,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mm%2Fmm"
},
"AxialStress": {
"Value": 0.5556,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"RadialStress": {
"Value": 0.4758,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"PorePressure": {
"Value": -0.0055,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"AxialPWaveVelocity": {
"Value": -1,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:m2%Fs"
},
"AxialSWaveVelocity": {
"Value": -1,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:m2%Fs"
},
"Porosity": {
"Value": 0.264,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25"
},
"EffectiveAxialStress": {
"Value": 32.07,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"EffectiveRadialStress": {
"Value": 2,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"PoissonsRatio": 0.46,
"Remarks": "Successfully Checked",
"LoadingCondition": "Compression",
"ConsolidationType": "Isotropic",
"DrainageCondition": "drained",
"LoadingMethod": "continous",
"Lithology": "none",
"CutFluid": "none"
},
{
"SampleID": "^[\\w\\-\\.]+:master-data\\-\\-SamplesAnalysis:con438ie",
"Length": {
"Value": 88.84,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mm"
},
"Diameter": {
"Value": 37.808,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mm"
},
"Density": {
"Value": 2.01,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:g2F%cm3"
},
"Time": {
"Value": 293,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:s"
},
"AxialStrain": {
"Value": 0.3641,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mm%2Fmm"
},
"RadialStrain": {
"Value": 1.052,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:mm%2Fmm"
},
"AxialStress": {
"Value": 0.5593,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"RadialStress": {
"Value": 0.4778,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"PorePressure": {
"Value": -0.0055,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"AxialPWaveVelocity": {
"Value": -1,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:m2%Fs"
},
"AxialSWaveVelocity": {
"Value": -1,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:m2%Fs"
},
"Porosity": {
"Value": 0.264,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25"
},
"EffectiveAxialStress": {
"Value": 32.07,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"EffectiveRadialStress": {
"Value": 2,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:psi"
},
"PoissonsRatio": 0.46,
"Remarks": "Successfully Checked",
"LoadingCondition": "Compression",
"ConsolidationType": "Isotropic",
"DrainageCondition": "drained",
"LoadingMethod": "continous",
"Lithology": "none",
"CutFluid": "none"
}
] }
Edited by Michael Jones