Replies: 1 comment 6 replies
-
As I understand, custom APIRoute is actually like middleware. It wraps your request handler. And request validation is only happens after you call But you can read raw input data (not validated yet) with |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
Is there a way to get the input parameters for a fastapi APIRoute function when defining a custom router class (per the docs)?
For example, in the example below, if the things variable wasn't sent in the request, could I still get a hold of the value passed to it in my custom router class?
Operating System
Windows
Operating System Details
No response
FastAPI Version
0.110.0
Pydantic Version
1.10.14
Python Version
3.10.11
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions