I would argue that the whole endpoint is useless if there is an arbitrary limit of reporting only flights which lasted less than 2 hours.
But, if that is the intention and there are good usecases for this endpoint out there; I would certainly clarify this in the docs.
Some comments regarding the REST docs for this particular endpoint ;
Description
Currently the description says;
This API call retrieves flights for a certain time interval [begin, end].
To me this does not fully describe how the interval setting limits the result. @Brinknr wording is more descriptive here;
It seems that it only returns flights that have started and ended within the given time interval.
Request parameters
Regarding the naming of the
and
parameters. Since they seem to be targeting the
and
properties, it would be clearer to rename them to something akin to
and
. This would also immediately strike the relation between the properties and explain how they affect the results.
Response
The `Response` property list is empty. Luckily it is not hard to just call the endpoint and see the results in real life, but I guess this should still be fixed (or the paragraph removed).
Examples
The one example given has the following description
Get flights from 12pm to 1pm on Jan 29 2018:
I would read that as; anything that was in the air within that timeframe. However, instead it returns anything that has departed and landed within that timeframe, which is a subset of anything that was in the air at that time.