limit and offset bug
When using limit
and offset
parameters the responses are wrong if you have no other query arguments.
Example:
https://toar-data.fz-juelich.de/api/v2/timeseries/?limit=4 -> returns ids 3, 4, 5, 6
https://toar-data.fz-juelich.de/api/v2/timeseries/?limit=3&offset=1 -> returns ids 5, 6 (expected: 4, 5, 6)
Using the same example with an additional query parameter and everything works as expected:
https://toar-data.fz-juelich.de/api/v2/timeseries/?limit=4&variable_id=5 -> returns ids 3, 4, 5, 6
https://toar-data.fz-juelich.de/api/v2/timeseries/?limit=3&offset=1&variable_id=5 -> returns ids 4, 5, 6