MCPcopy Create free account
hub / github.com/binkuolo/fastapi / custom_swagger_ui_html

Function custom_swagger_ui_html

app.py:50–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48# custom_swagger_ui_html
49@application.get("/docs", include_in_schema=False)
50async def custom_swagger_ui_html():
51 return get_swagger_ui_html(
52 openapi_url=application.openapi_url,
53 title=application.title + " - Swagger UI",
54 oauth2_redirect_url=application.swagger_ui_oauth2_redirect_url,
55 swagger_js_url="/swagger-ui-bundle.js",
56 swagger_css_url="/swagger-ui.css",
57 )
58
59
60# swagger_ui_oauth2_redirect_url

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected