We are developing connector for Marketo. While trying to retriev all the segments present, we faced an issue.
The URL we are trying to hit is /rest/asset/v1/segmentation/1001/segments.json?maxReturn=10.
The parameter 'maxReturn' should never have the value as '0' or '-1'. But for this particular scenario; irrespective of the parameter's value, all the segments are getting retrieved.
Could any one of you please confirm the behavior for this case.