Project

General

Profile

Actions

Refactor #29909

closed

Support fetching all records in API

Added by Ondřej Pražák over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

API currently returns only paginated response. If no pagination params are given, a default page size is used. The only way to get all records in one request is to use a per_page size big enough to contain all the records. We should be able to specify that we want all the records rather than using an arbitrary number.


Related issues 3 (1 open2 closed)

Related to Foreman - Bug #31554: GET "/api/v2/permissions" Is failing with 500 Internal Server ErrorClosedOndřej EzrActions
Related to Foreman - Bug #32776: Host api request fails when thin=true and per_page=allClosedDominik MatoulekActions
Related to Foreman - Bug #31897: Headline api feature per_page=all doesn't work for all resourcesNewActions
Actions

Also available in: Atom PDF