depends

FastAPI: can I use Depends() for parameters in a POST, too?

FastAPI: can I use Depends() for parameters in a POST, too? Question: Overview I have created a class-based dependency, similar to what is in the amazing FastAPI tutorial. Problem It works, except that the parameters in the dependency (the Depends() portion) are passed as query parameters, meaning that they are part of the URI/URL. I …

Total answers: 2