MCPcopy
hub / github.com/fastapi/fastapi / custom_swagger_ui_html

Function custom_swagger_ui_html

docs_src/custom_docs_ui/tutorial002_py310.py:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14@app.get("/docs", include_in_schema=False)
15async def custom_swagger_ui_html():
16 return get_swagger_ui_html(
17 openapi_url=app.openapi_url,
18 title=app.title + " - Swagger UI",
19 oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url,
20 swagger_js_url="/static/swagger-ui-bundle.js",
21 swagger_css_url="/static/swagger-ui.css",
22 )
23
24
25@app.get(app.swagger_ui_oauth2_redirect_url, include_in_schema=False)

Callers

nothing calls this directly

Calls 1

get_swagger_ui_htmlFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…