I want to get complete data from an HTTP Api end point whose structure looks like,
{
"count": 500,
"next": "<end point of next page>",
"previous": <endpoint of prev page>,
"results": [
{
<data object>
}]
}
I call this API with query parameters (limit and offset), how can i get all the records and store them in table parameter.
I tried changing limit parameter in the session by updating the value of the limit parameter based on count value received in API response in QAction by using SetParameter() method.
The problem here is i will not get all the records in first API call after the count is changed some reason.
I want to make robust protocol handle this situation.
Can you please suggest best way to do this.
i will try. but calling HTTP end point inside QAction, Can you please provide sample logic what are the ddls need to add to handle http calls.