File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ <!DOCTYPE html>
3+ < html >
4+ < head >
5+ < link type ="text/css " rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui.css ">
6+ < link rel ="shortcut icon " href ="https://fastapi.tiangolo.com/img/favicon.png ">
7+ < title > FastAPI Template - Swagger UI</ title >
8+ </ head >
9+ < body >
10+ < div id ="swagger-ui ">
11+ </ div >
12+ < script src ="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui-bundle.js "> </ script >
13+ <!-- `SwaggerUIBundle` is now available on the page -->
14+ < script >
15+ const ui = SwaggerUIBundle ( {
16+ url : 'openapi.json' ,
17+ "dom_id" : "#swagger-ui" ,
18+ "layout" : "BaseLayout" ,
19+ "deepLinking" : true ,
20+ "showExtensions" : true ,
21+ "showCommonExtensions" : true ,
22+ oauth2RedirectUrl : window . location . origin + '/api/docs/oauth2-redirect' ,
23+ presets : [
24+ SwaggerUIBundle . presets . apis ,
25+ SwaggerUIBundle . SwaggerUIStandalonePreset
26+ ] ,
27+ } )
28+ </ script >
29+ </ body >
30+ </ html >
31+
You can’t perform that action at this time.
0 commit comments