File tree Expand file tree Collapse file tree 2 files changed +1
-32
lines changed
Expand file tree Collapse file tree 2 files changed +1
-32
lines changed Original file line number Diff line number Diff line change 3333 sleep 1
3434 done
3535 curl -o docs/index.html --silent --fail http://0.0.0.0:8000/api/docs
36- sed 's:/api/openapi.json:openapi.json:g' docs/index.html > docs/i .html
36+ sed 's:/api/openapi.json:openapi.json:g' docs/index.html > docs/index .html
3737
3838 - uses : EndBug/add-and-commit@v9
3939 with :
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 : '/api/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