If you don’t paginate GET LIST data in your API, most likely you will be giving your API consumers too much data, and adding too much load on your API.
Episode source code: https://github.com/corsego/133-api-pagination/commit/217084cea158f151479797fcf54512fcc43d2000
Based on this blogpost: https://blog.corsego.com/api-pagination-pagy