determine the end of a query

19 views
Skip to first unread message

Dan

unread,
Apr 19, 2013, 7:49:14 PM4/19/13
to yipi...@googlegroups.com
I notice that even when there are no more elements to be returned by a follow-on request, the API response returns a next in the meta tag. For example I queried for the list of divisions like so

http://api.yipit.com/v1/divisions?limit=1000&key=mykey

and received the meta object below in response. However there were no more responses to the query using the next element below. That response also did return another next tag. I take it this is a bug and the correct way is to look for more objects in the response array. Let me know if that's not the case

"meta": {
        "next": "http://api.yipit.com/v1/divisions?limit=200&key=mykey&offset=200",
        "code": 200,
        "previous": null
    },

Dave Tomback

unread,
Apr 22, 2013, 4:05:25 PM4/22/13
to yipi...@googlegroups.com
Response pagination could be improved. But yes, no additional objects in the response array would indicate no more data available.
Reply all
Reply to author
Forward
0 new messages