issues
search
Police-Data-Accessibility-Project
/
data-sources-app
An API and UI for using and maintaining the Data Sources database
MIT License
4
stars
5
forks
source link
Add pagination and result limiting for `/archives` `GET`
#545
Open
maxachis
opened
1 day ago
maxachis
commented
1 day ago
Context
Currently,
/archives
GET
has no means to paginate or limit the number of results obtained.
As the amount of archived data sources increases, this will pose a problem
Requirements
Update
/archives
GET
to include a page parameter (defaulting to 1)
Update
/archives
GET
to limit the number of results per page to 100 (same as with other
GET-MANY
endpoints)
Refactor internal logic of
/archives
to bring in line with other endpoints
Update
/archives
GET
tests to test the above two additoins.
Tests
Tests should be updated as per above
Docs
Documentation will need update
Open questions
None at this time.
Context
/archives
GET
has no means to paginate or limit the number of results obtained.Requirements
/archives
GET
to include a page parameter (defaulting to 1)/archives
GET
to limit the number of results per page to 100 (same as with otherGET-MANY
endpoints)/archives
to bring in line with other endpoints/archives
GET
tests to test the above two additoins.Tests
Docs
Open questions