Problem
The boost_endpoint app exposes HTTP routes for operators and integrators, but there is no documentation describing the API surface. Without docs, external consumers cannot integrate with the add-or-update flow, and operators cannot verify their deployment is working. The asynchronous 202/task-ID pattern is non-obvious and needs explicit documentation covering request shapes, response shapes, authentication, and task status polling.
Acceptance Criteria
Implementation Notes
Use a single Markdown file with clear sections per endpoint. Include a "Quick Start" section at the top showing the minimum viable integration (get token, POST add-or-update, check task). For the async flow diagram, a simple text-based sequence is sufficient (no Mermaid required unless the team prefers it). Cross-reference the README.md for deployment instructions. This doc is the primary reference for operators who will call the endpoint from CI/CD pipelines or admin scripts.
References
- Related files:
docs/api.md (new), src/boost_weblate/views.py, src/boost_weblate/urls.py
- Depends on: Andrew's
views.py and urls.py items (for the exact route and field definitions)
Problem
The
boost_endpointapp exposes HTTP routes for operators and integrators, but there is no documentation describing the API surface. Without docs, external consumers cannot integrate with the add-or-update flow, and operators cannot verify their deployment is working. The asynchronous 202/task-ID pattern is non-obvious and needs explicit documentation covering request shapes, response shapes, authentication, and task status polling.Acceptance Criteria
docs/api.md(or equivalent) file documents all HTTP endpoints:GET /boost/info/andPOST /boost/add-or-update/POST /add-or-update/documentation explains the asynchronous flow: request ->202 Acceptedwithtask_id-> poll task status via Celery result backend or a future status endpointcurlcommands are provided for each endpoint (with placeholder tokens)400validation errors,401/403auth errors,500server errorsviews.pyto stay in syncImplementation Notes
Use a single Markdown file with clear sections per endpoint. Include a "Quick Start" section at the top showing the minimum viable integration (get token, POST add-or-update, check task). For the async flow diagram, a simple text-based sequence is sufficient (no Mermaid required unless the team prefers it). Cross-reference the
README.mdfor deployment instructions. This doc is the primary reference for operators who will call the endpoint from CI/CD pipelines or admin scripts.References
docs/api.md(new),src/boost_weblate/views.py,src/boost_weblate/urls.pyviews.pyandurls.pyitems (for the exact route and field definitions)