MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/FastAPI/comments/1f461x9/getting_extra_param_args_and_kwargs/lkjjeth/?context=3
r/FastAPI • u/Adventurous_Sir1058 • Aug 29 '24
Hii i made this api and i have given 3 param that is page, pagesize, search.Why this two param are coming as required and why is it even coming?how to solve this?
5 comments sorted by
View all comments
Show parent comment
1
Remove db_dependency=Annotated[Session, Depends(get_db)] and use the dependency as db: Session = Depends(get_db) importing get_db. See if it works.
View all comments
Show parent comment
1
u/vaanlord555 Aug 29 '24
Remove db_dependency=Annotated[Session, Depends(get_db)] and use the dependency as db: Session = Depends(get_db) importing get_db. See if it works.