Replies: 1 comment
-
Could you please share examples of tasks that you are going to solve with this feature? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
I have a custom
APIRouter
implementation that I want to use in myFastAPI
application.Currently, it's not possible to override the default
APIRouter
inFastAPI
instance.As far as we can override default
APIRoute
class onAPIRouter
level, I guess it also makes sense to be able to override the defaultAPIRouter
class on FastAPI level.My current workaround is to use
mount
method which is not ideal, because it will eventually miss a lot of features likefor instance openapi generation, etc.
Operating System
Linux, Windows, macOS, Other
Operating System Details
No response
FastAPI Version
0.115.12
Pydantic Version
2.11.4
Python Version
Python 3.10.16
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions