tosdr / edit.tosdr.org

👍👎 A new web app to rate services
https://edit.tosdr.org
GNU Affero General Public License v3.0
213 stars 37 forks source link

paginate JSON at certain API endpoints #944

Closed madoleary closed 3 years ago

madoleary commented 3 years ago

certain API endpoints return enormous responses, which should be paginated. the paginated responses should contain metadata about the total number of records and the total number of pages.

madoleary commented 3 years ago

@JustinBack I've implemented a solution for the /points endpoint on the branch fix-api

If this meets your requirements, I can merge it to master.

JustinBack commented 3 years ago

Thats great! Like the way I thought about it :D

madoleary commented 3 years ago

Cool, I'll merge and deploy tomorrow morning, then maybe implement the same thing for services.

madoleary commented 3 years ago

I've implemented pagination for the services endpoint. I'll close this issue, now. Please do not hesitate to create new issues if you have other suggestions or find other bugs with the API.