How do I get the current page in pagination?
To retrieve the current page use the getPage function. this will return the number of the current page. If pagination is disabled this will return false.
Should pagination start at 0?
When implementing a Rest API, with parameters for paging, should paging be zero indexed or start at 1. The parameters would be Page, and PageSize. Well, Yes!