Skip to main content

generate_index_html

Function generate_index_html 

Source
pub fn generate_index_html(
    ui_path: &str,
    api_doc_path: &str,
    options: &SwaggerUiOptions,
) -> String
Expand description

生成 Swagger UI 主页 HTML

根据是否启用 swagger-ui-embedded feature, 自动选择从本地相对路径或 CDN 加载静态资源。