silverstripe-restfulapi
silverstripe-restfulapi copied to clipboard
Pagination for the Json
Is there any configuration or way to make a pagination json at the end of the Api like this:
first_page_url: "http://localhost/pointofsale/api/product/all?page=1",
from: 5,
last_page: 500,
last_page_url: "http://localhost/pointofsale/api/product/all?page=500",
next_page_url: "http://localhost/pointofsale/api/product/all?page=4",
path: "http://localhost/pointofsale/api/product/all",
per_page: "2",
prev_page_url: "http://localhost/pointofsale/api/product/all?page=2",
to: 6,
total: 1000