I am using onapp api with one of my websites. Now I need to display a list of servers that the user have purchased. I got these data as an object as response from API call to onapp server. But sometimes, it is a huge list and so I need to paginate it. My current pagination is database oriented and it is selecting the particular number of data and limit is given according to the page. But in api response. I got all the responses at a time.
So how can I paginate in server side rather than depending on client side pagination.. ?