-
-
Notifications
You must be signed in to change notification settings - Fork 234
Description
Versions
- Pi-hole: 6.2.2
- Web: 6.3
- FTL: 6.3.2
Expected behavior
The API documentation for the /queries endpoint states:
By default, the returned queries always start at the most recent query. This can be changed by supplying the parameter cursor. Each result of this API callback contains a cursor pointing the beginning of the next length queries chunk. This provides a very fast and lightweight server-side pagination implementation.
This implies that the cursor in the response a pre-calculated pointer that can be used directly in a subsequent request to fetch the next chunk of queries.
Actual behavior / bug
Instead of providing a cursor for the next chunk of data, the API actually returns a cursor that points to the start of the current chunk. If a cursor is passed in the request, the API simply returns that same cursor value in the response.
Steps to reproduce
Steps to reproduce the behavior:
- Go to local documentation
- Click
tryon the/queriesendpoint - Copy the returned cursor, paste it into the cursor field, press
tryagain - you will see that the response contains the same cursor value that was provided in the request