Open btylerburton opened 1 month ago
In order to ensure adequate application performance, datagovteam wants to configure support for pagination on large API endpoints.
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
[ ] GIVEN I have an API endpoint that returns a large number of objects THEN I want to be able to paginate that response
[ ] GIVEN I have paginated an API endpoint THEN I want to modify the UI to support prev/next pages
Flask-SQLAlchemy supports pagination out of the box. More here: https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-ix-pagination
None
paginate
prev/next
Plan to use server side rendering, but possible to use client side in organization or harvest source searching.
User Story
In order to ensure adequate application performance, datagovteam wants to configure support for pagination on large API endpoints.
Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
[ ] GIVEN I have an API endpoint that returns a large number of objects THEN I want to be able to paginate that response
[ ] GIVEN I have paginated an API endpoint THEN I want to modify the UI to support prev/next pages
Background
Flask-SQLAlchemy supports pagination out of the box. More here: https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-ix-pagination
Security Considerations (required)
None
Sketch
paginate
optionprev/next
buttons