awtkns / fastapi-crudrouter

A dynamic FastAPI router that automatically creates CRUD routes for your models
https://fastapi-crudrouter.awtkns.com
MIT License
1.34k stars 156 forks source link

Return extra data for each API with pagination #138

Open zahid-arbisoft opened 2 years ago

zahid-arbisoft commented 2 years ago

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