Edges list paging issue

Hi,

We are attempting to retrieve a list of all the edges on our system. As this data is paged, we build a request with:

ApiRequest request = GetTelephonyProvidersEdgesRequest.builder().withPageSize(pageSize).withPageSize(pageNumber).build().withHttpInfo();

using e.g. page size 100 and page number 1 for the first request, then incrementing the page number for subsequent requests. However, the data we get back from getTelephonyProvidersEdges appears to be inconsistent with these parameters.

On the first call (pageNumber=1), we get the first edge and page info:

"pageSize":1,"pageNumber":1,"total":4

On the second call (pageNumber=2), we get the first two edges and page info:

"pageSize":2,"pageNumber":1,"total":4

On the third call (pageNumber=3), we get the first 3 edges and page info:

"pageSize":3,"pageNumber":1,"total":4

On the fourth and final call (pageNumber=4), we get all 4 edges and page info:

"pageSize":4,"pageNumber":1,"total":4

This is forcing us to loop through the edges one at a time, and returning duplicate data with each subsequent call.

Is there a workaround that would resolve this?

Is that a typo? (calling withPageSize twice)

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.