Hi, it seems to be the pagination control for this resource has a bug:
GET /api/v2/outbound/rulesets
In the response, after listing the last page of results and then increasing the pageNumber value, it's always responding with that last result page after.
I would expect (as usual) and empty "entities" array so the pagination control can be done by increasing the pageNumber then checking if the array with the results is empty:
if (data.entities.length > 0) => do something
otherwise => results for all pages have been fetched.
Because of this bug, we are falling into an infinite loop because regardless of the pageNumber (and as long as there's at least 1 result), the response will never be empty.
In the meantime, we will change the method for checking if the last page of results has been reached but I think this is a bug.
#API/Integrations#Outbound------------------------------
Henry Zambrano
Software Engineer
------------------------------