flightstats/hub

Allow for /next/n to be inclusive

Closed this issue · 5 comments

We have a pattern where, given a hub uri, we want to get the next n items inclusive of the given hub uri.

Something like:
/channel/foo/2017/11/17/00/00/00/000/abcdef/next/1000?inclusive=true&bulk=true

@lucasmo are there any other endpoints where this is needed? What about earliest & latest?

@lucasmo if you query /next/1000 with inclusive, do you expect 1001 items?

I can see potentially doing the same for "previous" but not "earliest" or "latest" personally. I think we would be tolerant of N or N+1 items, though I would expect N based on the request.

I agree with what Zack said.

Excellent.
We will add inclusive to next and previous, and we will return the number of items requested.