Implement CRUD endpoints of NMR record

POST/api/rafs-ddms/nmrtests 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 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

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

  • User should be able to retrieve specific NMR 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.
  • User should be able to retrieve the particular version of the record with GET/api/rafs-ddms/Nmr/{record_id}/{version}

DELETE /api/rafs-ddms/nmrtests/{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
  • Response should be returned in the interval of 0.1-1 second
  • 204 response should successfully indicate a deleted record
Edited by Michael Jones