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 #1

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7685 added
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 2.2.0 added
Actions #3

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

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Tomer Brisker over 4 years ago

  • Category set to API
Actions #5

Updated by The Foreman Bot about 4 years ago

  • Pull request https://github.com/theforeman/foreman/pull/7975 added
Actions #6

Updated by Ondřej Ezr almost 4 years ago

  • Related to Bug #31554: GET "/api/v2/permissions" Is failing with 500 Internal Server Error added
Actions #7

Updated by Tomer Brisker over 3 years ago

  • Related to Bug #32776: Host api request fails when thin=true and per_page=all added
Actions #8

Updated by Ewoud Kohl van Wijngaarden over 3 years ago

  • Related to Bug #31897: Headline api feature per_page=all doesn't work for all resources added
Actions

Also available in: Atom PDF