Changes
Page history
Update Implementing Generic CRUD Endpoints
authored
Jul 03, 2025
by
Vihar Mamania
Show whitespace changes
Inline
Side-by-side
Implementing-Generic-CRUD-Endpoints.md
View page @
1df49592
...
...
@@ -28,7 +28,8 @@ In `api_configuration.py` add a API config object with all details.
WellPressureTestRawMeasurementAPI = APIConfiguration(tag="WellPressureTestRawMeasurement v3",
entity_uri="/wellpressuretestrawmeasurement",
entity=Entity.WELLPRESSURETESTRAWMEASUREMENT,
record_id_constraint=WellPressureTestRawMeasurementId, record_consistency_check_function=check_well_pressure_test_raw_measurement_consistency)
record_id_constraint=WellPressureTestRawMeasurementId,
record_consistency_check_function=check_well_pressure_test_raw_measurement_consistency)
```
Finally In
`wdms_app.py`
add the above API object to
`ddms_v3_routes_crud_api`
list, this would automatically expose the given set of APIs for this entity.
...
...
...
...