Actions
action #132899
openAPI parameter `page` does nothing
Status:
New
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
QA (public, currently private due to #173521) - future
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