silverstripe-restfulapi icon indicating copy to clipboard operation
silverstripe-restfulapi copied to clipboard

Pagination for the Json

Open Misagh90 opened this issue 5 years ago • 0 comments

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

Misagh90 avatar Jun 24 '19 10:06 Misagh90