colymba / silverstripe-restfulapi

SilverStripe RESTful API with a default JSON serializer.
BSD 3-Clause "New" or "Revised" License
64 stars 33 forks source link

Pagination for the Json #101

Open Misagh90 opened 5 years ago

Misagh90 commented 5 years ago

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