Paginate GET requests #201
Labels
backend
Backend related functionality
good first issue
Good for newcomers
improvement
Improvement to existing functionality
Describe the improvement you would like to see
When receiving a GET requests for multiple entries we should restrict the amount returned using a pagination system with default parameters that may be overwritten in the query. The parameter for page size should have an upper limit.
This is in accordance with the RESTful API principles.
How will this change existing functionality?
This will throttle our API and protect it from being overloaded in the future when we might have a large amount of data being retrieved by these calls.
Better to implement it now in anticipation as it might be easy to forget in the future as the database will probably grow slowly.
How will this improvement affect the current Threat Model?
This improvement should make our API more reliable in the long run and possibly prevent downtime.
The text was updated successfully, but these errors were encountered: