pdeneu Super Contributor.
Super Contributor.
86 views

REST Driver Pagination

Jump to solution

Hello everyone,

i want to connect to a rest application to get the data via publisher GET calls, but this application segments responses for certain GET operations into pages. With one request / poll i just get a max of 50 items. So i have to do the request on a new url with a argument pagenumber=n again. Every request sends me "total" items and how many items on that page:

 

....],"size":50,"start":1,"total":16508}

 

Next Page:

 

....],"size":50,"start":51,"total":16508}

 

 Do you have any idea how to handle these poll events on the publisher channel to loop trough all pages?

I thought to let the application poll the first page, loop trough this event and do a query for all others.

Im very happy about every idea 🙂

Regards


--
https://www.lanworks.de
Labels (1)
0 Likes
1 Solution

Accepted Solutions
pdeneu Super Contributor.
Super Contributor.

Re: REST Driver Pagination

Jump to solution

Development told me that this is not scheduled for the next time. 

So i solved it doing an query based on sub trigger.

 


--
https://www.lanworks.de
0 Likes
1 Reply
pdeneu Super Contributor.
Super Contributor.

Re: REST Driver Pagination

Jump to solution

Development told me that this is not scheduled for the next time. 

So i solved it doing an query based on sub trigger.

 


--
https://www.lanworks.de
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.