-
Given
|
Beta Was this translation helpful? Give feedback.
Answered by
uriyyo
May 8, 2023
Replies: 1 comment
-
Hi @shawnwall, You can use from fastapi_pagination import Params, resolve_params
@app.get('/users', response_model=Page[UserOut])
async def get_users():
params: Params = resolve_params()
return paginate(users) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
shawnwall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @shawnwall,
You can use
resolve_params
function inside endpoint function: