Human-facing REST API specification generated from flask-smorest (app/openapi/).
| File | Purpose |
|---|---|
openapi.yaml |
Committed SSOT — update via backend_api_python/scripts/export_openapi.py |
index.html |
Static Redoc viewer — must be served over HTTP (see below) |
ReDoc cannot load openapi.yaml when you double-click index.html (file:// is blocked by browser same-origin policy). Use any static server from the repo root or this folder:
# Python (from docs/api/)
python -m http.server 8080
# open http://localhost:8080/index.html
# or from repo root
cd docs/api && npx --yes serve -p 8080If you see process is not defined, refresh after pulling the latest index.html (includes a browser shim + pinned ReDoc 2.4.0).
See ../API_CONVENTIONS.md for envelopes, auth, and Public/Internal tiers.
AI agents use a separate contract: ../agent/agent-openapi.json.
cd backend_api_python
pip install -r requirements.txt
python scripts/export_openapi.pyWith the backend running in debug mode (or OPENAPI_ENABLED=true):
- Swagger UI: http://localhost:5000/api/docs/swagger
- ReDoc: http://localhost:5000/api/docs/redoc