Expand description
OpenAPI 3.0 spec generation + a tiny Swagger UI page.
Walks every RouteDescriptor collected via inventory, converts the
associated RouteSpec into a paths.<route>.<method> entry, harvests
schemars definitions into components.schemas, and produces a spec
that’s immediately browsable in Swagger UI.
Structs§
- Open
ApiInfo - Top-level OpenAPI document configuration. Build at
main.rsand pass tocrate::App::launch_with_info.
Enums§
- ApiKey
In - Security
Scheme - HTTP authentication scheme exposed in
components.securitySchemes.
Constants§
- SWAGGER_
UI_ HTML - Minimal Swagger UI page (CDN-hosted assets). No build step, no extra crate.
Functions§
- build_
spec - Build a complete OpenAPI 3.0 document from all routes registered via
inventory. - build_
spec_ filtered allowed_controllers = Nonemeans “include every inventory-registered route” (legacy / no module scoping).Some(set)filters to controllers reachable from the root module’s import DAG.