Skip to main content

swagger_ui_html

Function swagger_ui_html 

Source
pub fn swagger_ui_html(spec_url: &str) -> String
Available on crate feature openapi only.
Expand description

Self-contained Swagger UI HTML page, loading the swagger-ui-dist bundle from a CDN and pointing it at spec_url (typically /openapi.json).