Skip to main content

generate_openapi

Function generate_openapi 

Source
pub fn generate_openapi(manifest: &AppManifest, base_url: &str) -> Value
Expand description

Generate a complete OpenAPI 3.0.3 specification from an AppManifest.

The base_url is used as the server URL in the spec. Pass an empty string or “/” if the server URL should be relative to the host.