Actions
Bug #3784
closedAPI v2 subtotal in list reports shows wrong value
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
GET "/api/reports?search=host.id+%3D+vm1.mbacovsk.redhat.com"
Retrieved data: {
"total" => 359,
"subtotal" => 359,
"page" => 1,
"per_page" => 20,
"search" => "host.id = vm1.mbacovsk.redhat.com",
"sort" => {
"by" => nil,
"order" => nil
},
"results" => [
...
In the results there is 20 records
Updated by Dominic Cleal over 10 years ago
- Status changed from New to Need more information
From http://theforeman.org/manuals/1.3/index.html#5.1.2JSONResponseFormatforCollections, this appears correct. It seems subtotal is the number of objects, not affected by pagination.
Updated by Martin Bacovsky over 10 years ago
- Status changed from Need more information to Closed
You are right, I had bad assumption about the attribute
Actions