Create POST Method for Reservoir Simulation Rock Physics Model CONTENT SCHEMA
As an OSDU data definitions member, I want the POST method to be created to support the Reservoir Simulation Rock Physics Model Content Schema. The method must fetch the record and throw the corresponding messages,(Check AC section).
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 POST request to POST /{record_id}/data/{content_schema_type} | |
| Path parameter validation: record_id must match regex or 422. Headers: Content-Type required.Supported: application/json, application/parquet.Unsupported → 415. | |
| Payload Validation: JSON: Must match model structure and be convertible to dataframe. Validation errors return 422. | |
| Parquet Validation: Must be readable parquet bytes. Conversion or validation errors → 422. |
End point:
/api/rafs-ddms/v2/reservoirsimulationrockphysicsmodel/{record_id}/data/
SCHEMA and reference links
JSON example:
Source data sample:
Reference list(s):
| Reference Data Name | Schema | Reference Value List |
|---|---|---|
| No additional reference data |
Edited by Raul Isunza