Actions
action #132899
openAPI parameter `page` does nothing
Start date:
2023-07-17
Due date:
% Done:
0%
Estimated time:
Description
Observation¶
Our documentation talks about limit
and page
parameters:
https://open.qa/docs/#_use_of_the_rest_api
limit/page: Limit the number of returned jobs and allow pagination, e.g. page=2&limit=10 would only show results 11-20.
However, using page=2
does not change anything. Using offset
does:
% curl -s "https://openqa.opensuse.org/api/v1/jobs?groupid=24&result=failed&limit=2&page=0" | jq '.jobs[] | .id'
3427355
3427415
% curl -s "https://openqa.opensuse.org/api/v1/jobs?groupid=24&result=failed&limit=2&page=1" | jq '.jobs[] | .id'
3427355
3427415
% curl -s "https://openqa.opensuse.org/api/v1/jobs?groupid=24&result=failed&limit=2&offset=0" | jq '.jobs[] | .id'
3427355
3427415
% curl -s "https://openqa.opensuse.org/api/v1/jobs?groupid=24&result=failed&limit=2&offset=1" | jq '.jobs[] | .id'
3427044
3427355
Actions