I am trying to get a response from any public REST API and process it (parsing it and putting in data structure). While getting this response from the API I want to use some pagination functionality. I referred this, the question discussed the pagination techniques for a particular API.
What I want to implement is making the pagination code snippet generic ie
- I don't have any control over server side pagination
- At run time I don't know the query parameter for the pagination provided by that API
I was wondering if there is any way that one can do the 'client-side only' pagination ie limit the response from the server, process it and the get the remaining response and so on.
I haven't worked much in pagination, so any ideas, suggestions, pointers are appreciated.
Thank you!