コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 2 of about 2 for bundle (0.001 sec.)
Custom Docs UI Static Assets (Self-Hosting) 11228
Custom Docs UI Static Assets (Self-Hosting) Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . The API docs use Swagger UI and ReDoc , and each of those need some Jav ... th2_redirect_url = app . swagger_ui_oauth2_redirect_url , swagger_js_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js" , swagger_css_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui.css" , ) @app . get ( app . swagger_ui_oauth2_redi ... c_html ( openapi_url = app . openapi_url , title = app . title + " - ReDoc" , redoc_js_url = "https://unpkg.com/redoc@next/bundles/redoc.standalone.js" , ) @app . get ( "/users/ {username} " ) async def read_user ( username : str ): return { "message" ... th2_redirect_url = app . swagger_ui_oauth2_redirect_url , swagger_js_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js" , swagger_css_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui.css" , ) @app . get ( app . swagger_ui_oauth2_redi ...
https://man.mtool.work/fastapi/0.115/how-to/custom-docs-ui-assets/
Configure Swagger UI 7485
Configure Swagger UI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can configure some extra Swagger UI parameters . To configure them, pass the swagger_ui_pa ... gger UI JavaScript. It is normally set to a CDN URL. """ ), ] = "https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-bundle.js" , swagger_css_url : Annotated [ str , Doc ( """ The URL to use to load the Swagger UI CSS. It is normally set to a CDN ... { title } </title> </head> <body> <div id="swagger-ui"> </div> <script src=" { swagger_js_url } "></script> <!-- `SwaggerUIBundle` is now available on the page --> <script> const ui = SwaggerUIBundle( {{ url: ' { openapi_url } ', """ for key , value in ... url : html += f "oauth2RedirectUrl: window.location.origin + ' { oauth2_redirect_url } '," html += """ presets: [ SwaggerUIBundle.presets.apis, SwaggerUIBundle.SwaggerUIStandalonePreset ], })""" if init_oauth : html += f """ ui.initOAuth( { json . dump ...
https://man.mtool.work/fastapi/0.115/how-to/configure-swagger-ui/
PREV 1 NEXT