Add backend API contract audit
This commit is contained in:
@@ -4,6 +4,17 @@ Setup-, import-, demo- en maintenance-scripts voor GeoIntel.
|
||||
|
||||
## Runtime verification
|
||||
|
||||
Audit the active backend route surface against `docs/API_CONTRACTS.md`:
|
||||
|
||||
```bash
|
||||
python scripts/audit_api_contracts.py
|
||||
```
|
||||
|
||||
The audit imports the FastAPI app, compares implemented `GET`/`POST`/`PATCH`/
|
||||
`DELETE` routes with active API contract headings and tracks the explicit
|
||||
non-envelope exceptions (`/health` and export downloads). It fails when a route
|
||||
exists without docs or when docs claim an endpoint that is not implemented.
|
||||
|
||||
Verify the browser-facing Docker/LAN runtime:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user