Skip to main content

build_openapi_spec

Function build_openapi_spec 

Source
pub fn build_openapi_spec(
    config: &OpenApiConfig,
    routes: &[RouteInfo],
) -> OpenApi
Expand description

Build an OpenAPI spec from route metadata.

Filters routes matching config.api_prefix, generates operations with auto-summaries and path parameters, and adds API key security scheme.