cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
806
Views
0
Helpful
5
Replies

Broadworks API endpoint is always sending pagination link

sandiban
Cisco Employee
Cisco Employee

Query from Markus Schulze in #webex4devs space

My understanding is that I don't get pagination links if there is no more data. Why does this not happen with the API endpoint GET /v1/broadworks/subscribers. Do I also need to check if the returned list is empty, since the links come overall?

5 Replies 5

sandiban
Cisco Employee
Cisco Employee

Hi Markus,

 

Are you seeing the pagination link always, even if there is not more than 100 rows.
In that case, could you share us your Request payload and the JSON response as well.
If you could share the details in a text file here than the raw text, would be helpful for us to check further.

 

Thank you!

Hi sandiban,
the link is always there, when it can not be processed in one query.

 
The Response is an empty list

 

{
    "items": []
}

But the pagination links for more pages are still there:

{
  'prev': {'url': 'https://webexapis.com/v1/broadworks/subscribers?after=1648591200000&max=100&offset=3600', 'rel': 'prev'}, 
  'next': {'url': 'https://webexapis.com/v1/broadworks/subscribers?after=1648591200000&max=100&offset=3800', 'rel': 'next'}
}

Cheers,

Markus

Hi Markus,

 

Thanks for the details.

Looks like a Bug, thanks for sharing the response!

We're going to check with our API Engg. team and to track the issue, kindly share the details to - devsupport@webex.com
It'd directly create a Support ticket and we can track the progress of the Bug as well.

Thanks!

already done via TAC Case: 693361055

Hi Markus I think you would be better served by reaching out to us through devsupport@webex.com, we're the team that deals with this API. Emailing us will create a ticket and we can then follow up on this issue, please include trackingIDs for your requests too (you can get them in the response headers). The TAC team wouldn't be the right team for this, it looks like they have redirected you to us in any case.