Expand description
Axum HTTP/JSON API handlers
Modulesยง
- routes
- Route constants and URL builders for Axum HTTP API
Structsยง
- Error
Response ๐ - API error response
- Send
Query ๐
Functionsยง
- classify_
availability_ ๐error - Classify an
anyhow::Errorfrom an availability handler into the appropriateApiErrorvariant. Errors produced viaAvailabilityErrorin the state implementation carry semantic meaning; everything else falls back to a 500 Internal Server Error. - create_
combined_ router - Create a combined router serving both v1 and v2 APIs
- create_
router_ v1 - Create v1 router without OpenAPI documentation (internal types)
- create_
router_ v2 - Create v2 router with OpenAPI documentation (proto types)
- drive_
ws_ ๐stream - redirect_
to_ ๐docs - Redirect handler for root path
- rewrite_
root_ ๐to_ v2 - Middleware to rewrite root paths to /v2 paths
- serve_
openapi_ ๐spec - Serve the OpenAPI spec (extracted from Extension)
- serve_
swagger_ ๐ui - Serve custom Swagger UI with collapsed defaults