Closed madoleary closed 3 years ago
@JustinBack I've implemented a solution for the /points
endpoint on the branch fix-api
/points
, you'll receive all of the objects as usual/points?page=1
, you'll receive a response containing an object labeled points
with the first 100 points, plus an object labeled meta
, containing total_pages
and total_records
, where total_records
indicates the total number of point objectsmeta
object exists on each response pageIf this meets your requirements, I can merge it to master.
Thats great! Like the way I thought about it :D
Cool, I'll merge and deploy tomorrow morning, then maybe implement the same thing for services.
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.
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.