Skip to content

general help / list users route #451

Answered by frankie567
luismanson asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @luismanson!

Sorry for the respnse delay!

  • The list users route depend on you, and how you want your API to work (pagination, filtering handling...). There used to be this route implemented in FastAPI Users but we removed it because it was too opinionated for the common case. Basically, you'll make a request to your database, instantiating the results into Pydantic models and return them.
  • There is no big difference between what is done in the FastAPI tutorial and what we do here. The configuration of FastAPI Users is actually convenient logic that does basically the same thing as you would do normally. However, for your own route and models, you should follow the FastAPI tutorial, noth…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by luismanson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants