Optional pagination
See original GitHub issueIs it possible to create a route that would return a paginated result if some params
where passed, and a non-paginated result otherwise?
It looks like add_pagination
inspects the response_model
, so I’m not sure how it can be done.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Optional pagination with Spring - java - Stack Overflow
I am pretty new to java and spring. What I want to implement is api endpoint /tickets with pagination and sorting. I made...
Read more >Best way to implement optional pagination and query strings ...
Best way to implement optional pagination and query strings on Laravel REST API. I have an App with 3 models: Customers, Orders and...
Read more >Optional pagination for view-endpoints · Issue #273 - GitHub
I solved this issue by monkey patching PaginationMixin.paginate and _pagination_parameters_schema_factory . The force -Parameter of Blueprint.
Read more >Is pagination optional? - Google Groups
I seem to remember some discussion around pagination being optional (maybe at the Cloud Identity Summit back in July?). However, in reading the...
Read more >Pagination - Django REST framework
Pagination. Django provides a few classes that help you manage paginated data – that is, data that's split across several pages, with “Previous/Next”...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @davidbrochart @marioland ,
With version
0.11.0
you can achieve this usingpagination_ctx
function:Hi @davidbrochart, I am closing this issue, please reopen it if you have more questions.