Open carrythebanner opened 4 months ago
re: range in general. i think i can see it either way: an additional number of days to see. or, the absolute number of days to fetch.
it might be worth adding a comment to the const EVENTS_RANGE
to indicate that its the latter; and so therefore always needs to be 1 or greater. ( the server side could potentially get the same sort of comment on MaxRange, too; but maybe less important there because its able to validate > 0 when the request is submitted. )
Updated how event ranges are handled:
startdate
&enddate
were provided by the user; fixes #760So now:
pagination.range
returns 1 as expected whenstartdate
andenddate
are the same date; fixes #567Also:
prev
to Events endpointpagination
object, alongsidenext