Project

General

Profile

Actions

action #132899

open

API parameter `page` does nothing

Added by tinita 10 months ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
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 #1

Updated by okurz 10 months ago

  • Target version set to Ready
Actions #2

Updated by okurz 10 months ago

  • Target version changed from Ready to future
Actions

Also available in: Atom PDF