Create WPC POST Method for Saturation Function Set schema
As an OSDU data definitions member, I want the POST method to be created to support the Saturation Function Set 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 | Y |
Acceptance criteria:
| AC | Completed |
|---|---|
| The user can send a Request type: POST / | Y |
| Headers must be present: Content-Type: application/json required. Missing header ® 415. | Y |
| Body: Must be JSON array. Invalid format ® 422. | Y |
| Response: 200 OK with JSON structure: { "record_count": int, "record_id_versions": array,"skipped_record_count": int } | Y |
| Postman Tests: Valid JSON array ® 200 OK. Missing header ® 415. Invalid JSON ® 422.Empty array ® 200 OK. | Y |
End point:
/api/rafs-ddms/v2/saturationfunctionset/
SCHEMA and reference links
You can access the json example file here: https://gitlab.opengroup.org/osdu/subcommittees/data-def/projects/ResMngmtTeam/docs/-/blob/main/Dynamic%20Reservoir%20Modeling/Jan2025_Workshop/Workshops_Outcomes_Proposals/JSON%20examples/wpc-saturationfunction.json
Source data sample:
Reference list(s):
Edited by Raul Isunza