Create WPC POST Method for Fluid Model schema
As an OSDU data definitions member, I want the POST method to be created to support the Fluid Model WPC. The method must receive a client request and create and post a record.
Dependencies before start the development :
| Task | Status (Y / N) |
|---|---|
| Proposal document revised | Y |
| Multi – company review | Y |
| OSDU Forum approval |
Acceptance criteria:
| AC | Completed |
|---|---|
| The user can send a Request type: POST / | |
| Headers must be present: Content-Type: application/json required. Missing header ® 415. | |
| Body: Must be JSON array. Invalid format ® 422. | |
| Response: 200 OK with JSON structure: { "record_count": int, "record_id_versions": array,"skipped_record_count": int } | |
| Postman Tests: Valid JSON array ® 200 OK. Missing header ® 415. Invalid JSON ® 422.Empty array ® 200 OK. |
End point:
/api/rafs-ddms/v2/fluidmodel/
SCHEMA and reference links
You can access the json example file here: https://gitlab.opengroup.org/osdu/subcommittees/data-def/work-products/schema/-/blob/master/Generated/work-product-component/FluidModel.1.0.0.json
Source data sample:
Reference list(s):
Edited by Raul Isunza