/api/v1/. The full,
always-current endpoint reference is generated from the backend’s OpenAPI schema and
listed under Endpoints in the sidebar.
Base URLs
Authentication
Send a DRF token on every request. See Authentication.Conventions
- JSON in, JSON out. Send
Content-Type: application/json. - UUIDs identify most resources.
- Errors use standard HTTP status codes with a JSON body describing the problem
(
400validation,401unauthenticated,403forbidden / cross-tenant,404not found,402over budget / insufficient credits,429rate limited). - Pagination on list endpoints returns
count,next,previous,results.
Headline endpoint groups
The Endpoints pages render from an OpenAPI 3 spec. Today that spec is
curated — accurate paths, methods, auth, and representative bodies for the
headline endpoints — because most ECN views are function-based and don’t yet
expose serializers for full auto-generation. The drf-spectacular tooling is wired
(
manage.py spectacular --settings ecn.settings_docs) and takes over automatically
as the v2 refactor migrates views to serializer-backed generics. Either way, the
spec is re-synced to test each docs iteration.