Skip to main content

Module openapi

Module openapi 

Source
Expand description

OpenAPI document assembly via utoipa.

ApiDoc is the root OpenApi struct. Routers register their paths into it via utoipa-axum in their respective phases. For P0 the paths list is empty; the document itself (title, version, security schemes) is wired here.

openapi_json is the handler registered at GET /openapi.json.

Structs§

ApiDoc
Root OpenAPI document.

Functions§

openapi_json
Handler for GET /openapi.json. Returns the full OpenAPI document as JSON.