Skip to main content

generate_openapi_spec

Function generate_openapi_spec 

Source
pub fn generate_openapi_spec(title: &str, version: &str) -> Value
Expand description

Generate an OpenAPI 3.0.3 specification from registered routes.

Returns a serde_json::Value that can be serialized to JSON.