Transform - Paginate function for REST API
Happy New Year to all.
I am consuming OIC REST API and which returns totalNumberOfRecords and the response data array object.
I want to implement LoadMoreOnScroll on this, and for which need to write the transform->paginate function to override.
- Could you please help me out with this? if you have any references for this would also help to make the changes for my requirement from scratch. (on what changes and where are all required in the transform js file)
- Also, do we need Count, hasMore, Limit and Offset in the service response? or only with the totalRecords we can write the js transform function?