You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!DOCTYPE html><html><head><linktype="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.css"><linkrel="shortcut icon" href="https://fastapi.tiangolo.com/img/favicon.png"><title>fastapi接口文档标题 - Swagger UI</title></head><body><divid="swagger-ui"></div><scriptsrc="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-bundle.js"></script><!-- `SwaggerUIBundle` is now available on the page --><script>constui=SwaggerUIBundle({url: '/v3/api-docs/default',"dom_id": "#swagger-ui","layout": "BaseLayout","deepLinking": true,"showExtensions": true,"showCommonExtensions": true,oauth2RedirectUrl: window.location.origin+'/docs/oauth2-redirect',presets: [SwaggerUIBundle.presets.apis,SwaggerUIBundle.SwaggerUIStandalonePreset],})</script></body></html>
The text was updated successfully, but these errors were encountered:
能否像swagger-ui-dist 那样,提供一个
CSS
和JS
文件的CDN,然后由后端使用一个 html文件引入这两个文件, 并添加相应的配置即可. 如下是使用 swagger-ui-dist 的使用示例The text was updated successfully, but these errors were encountered: