Update Implementing Generic CRUD Endpoints authored by Vihar Mamania's avatar Vihar Mamania
---
title: Implementing Generic CRUD Endpoints
---
This doc will help you to configure basic set of CRUD APIs for a particular entity. The APIs which would be exposed by this process would be as follows:-
This doc will help you to configure basic set of CRUD APIs for a particular entity. A reference Merge request is also provided at the end for ready reference. The APIs which would be exposed by this process would be as follows:-
* Read record using ID - `/ddms/v3/{entityName}/{recordID}`
* Create or update record- `/ddms/v3/{entityName}`
......@@ -17,7 +17,7 @@ Implement a function to perform record-level consistency validation. This functi
## **Record ID Constraint**
<span dir="">In </span><span dir="">`osdu_record_id.py`</span><span dir=""> add a entity specific recordID constraint. This constraint validates the input</span> `id` <span dir="">against a predefined regex pattern configured for the API. It ensures only records with valid IDs are accepted, helping to filter out malformed or non-compliant entries.</span>
<span dir="">In `osdu_record_id.py` add a entity specific recordID constraint. This constraint validates the input</span> `id` <span dir="">against a predefined regex pattern configured for the API. It ensures only records with valid IDs are accepted, helping to filter out malformed or non-compliant entries.</span>
## API Configuration
......@@ -34,3 +34,5 @@ ddms_v3_routes_crud_api: list[APIConfiguration] = [
WellPressureTestRawMeasurementAPI
]
```
Reference Merge Request - https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/wellbore/wellbore-domain-services/-/merge_requests/939
\ No newline at end of file