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

Function custom_swagger_ui_html

docs_src/custom_docs_ui/tutorial001_py310.py:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11@app.get("/docs", include_in_schema=False)
12async def custom_swagger_ui_html():
13 return get_swagger_ui_html(
14 openapi_url=app.openapi_url,
15 title=app.title + " - Swagger UI",
16 oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url,
17 swagger_js_url="https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js",
18 swagger_css_url="https://unpkg.com/swagger-ui-dist@5/swagger-ui.css",
19 )
20
21
22@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…