This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Error while using subapis at mounted swagger js and css #2005
Labels
You can continue the conversation there. Go to discussion →
I have use the documentation for mounting the swagger docs as https://fastapi.tiangolo.com/advanced/extending-openapi/
but when I try to mount using this
authAPI = FastAPI(docs_url=None, redoc_url=None)
@authAPI.get("/docs", include_in_schema=False)
app.mount("/api/v1.0/auth" , authAPI , name="authAPI")
async def custom_swagger_ui_html():
return get_swagger_ui_html(
openapi_url=authAPI.openapi_url,
title=authAPI.title + " ENTEL SGIMP ",
oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url,
swagger_js_url="/static/swagger-ui-bundle.js",
swagger_css_url="/static/swagger-ui.css",
)
the authAPI docs shows are from the openapi.json file not from the authAPI.Why does have this behavior?
Is there any way to fix it ?
main.zip
The text was updated successfully, but these errors were encountered: