Skip to main content

openapi_json_response

Function openapi_json_response 

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

Return an HttpResponse with the OpenAPI spec as JSON.

The spec is generated once and cached via OnceLock.