Skip to main content

openapi_spec

Function openapi_spec 

Source
pub fn openapi_spec() -> OpenApi
Expand description

Returns the OpenAPI specification for the HTTP API.

This builds the same spec that the running server uses, without requiring a running server or AppState instance.