Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return extra data for each API with pagination #138

Open
zahid-arbisoft opened this issue Jan 26, 2022 · 0 comments
Open

Return extra data for each API with pagination #138

zahid-arbisoft opened this issue Jan 26, 2022 · 0 comments

Comments

@zahid-arbisoft
Copy link

When using pagination can we return extra data like total_pages, previous_page_no?

For example for 100 records and for pagination value to 25

for requesting 25th to 50th record, response can be data along with:

total_pages = 4
current_page = 2

Fa2y added a commit to Fa2y/fastapi-crudrouter that referenced this issue Feb 22, 2023
Fa2y added a commit to Fa2y/fastapi-crudrouter that referenced this issue Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant