- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for swagger_ui_redirect (0.56 sec)
-
tests/test_custom_swagger_ui_redirect.py
Samuel Colvin <******@****.***> 1586320658 +0100
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Apr 08 04:37:38 GMT 2020 - 1.1K bytes - Viewed (0) -
tests/test_no_swagger_ui_redirect.py
Samuel Colvin <******@****.***> 1586320658 +0100
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Apr 08 04:37:38 GMT 2020 - 786 bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial002.py
swagger_js_url="/static/swagger-ui-bundle.js", swagger_css_url="/static/swagger-ui.css", ) @app.get(app.swagger_ui_oauth2_redirect_url, include_in_schema=False) async def swagger_ui_redirect(): return get_swagger_ui_oauth2_redirect_html() @app.get("/redoc", include_in_schema=False) async def redoc_html(): return get_redoc_html( openapi_url=app.openapi_url,
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Aug 19 19:54:04 GMT 2023 - 1.1K bytes - Viewed (0) -
docs_src/custom_docs_ui/tutorial001.py
swagger_css_url="https://unpkg.com/swagger-ui-dist@5.9.0/swagger-ui.css", ) @app.get(app.swagger_ui_oauth2_redirect_url, include_in_schema=False) async def swagger_ui_redirect(): return get_swagger_ui_oauth2_redirect_html() @app.get("/redoc", include_in_schema=False) async def redoc_html(): return get_redoc_html( openapi_url=app.openapi_url,
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Oct 30 09:58:58 GMT 2023 - 1.1K bytes - Viewed (0) -
docs/en/docs/how-to/custom-docs-ui-assets.md
And similarly for ReDoc... ```Python hl_lines="2-6 11-19 22-24 27-33" {!../../../docs_src/custom_docs_ui/tutorial001.py!} ``` !!! tip The *path operation* for `swagger_ui_redirect` is a helper for when you use OAuth2.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Oct 30 09:58:58 GMT 2023 - 7.5K bytes - Viewed (0) -
docs/de/docs/how-to/custom-docs-ui-assets.md
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 30 18:17:36 GMT 2024 - 9.2K bytes - Viewed (0) -
docs/zh/docs/advanced/extending-openapi.md
添加 ReDoc 文档的方式与此类似…… ```Python hl_lines="2-6 14-22 25-27 30-36" {!../../../docs_src/extending_openapi/tutorial002.py!} ``` !!! tip "提示" `swagger_ui_redirect` 的*路径操作*是 OAuth2 的辅助函数。 集成 API 与 OAuth2 第三方应用时,您能进行身份验证,使用请求凭证返回 API 文档,并使用真正的 OAuth2 身份验证与 API 文档进行交互操作。 Swagger UI 在后台进行处理,但它需要这个**重定向**辅助函数。 ### 创建测试*路径操作* 现在,测试各项功能是否能顺利运行。创建*路径操作*:
Plain Text - Registered: Sun Mar 31 07:19:09 GMT 2024 - Last Modified: Sat Mar 30 22:46:12 GMT 2024 - 7.7K bytes - Viewed (0) -
fastapi/applications.py
if self.swagger_ui_oauth2_redirect_url: async def swagger_ui_redirect(req: Request) -> HTMLResponse: return get_swagger_ui_oauth2_redirect_html() self.add_route( self.swagger_ui_oauth2_redirect_url, swagger_ui_redirect, include_in_schema=False, )
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 172.2K bytes - Viewed (0)