Actions
Bug #25487
closed'subtotal' is incorrect in API responses
Difficulty:
Triaged:
No
Bugzilla link:
Description
When requesting an endpoint with a search parameter, the subtotal shows the results returned, rather than responses found.
i.e.
curl -k -u admin:changeme -H "Content-Type: application/json" 'localhost:3000/api/v2/hosts?search=%20os_major%20%3D%20%207'
{
"total": 72,
"subtotal": 20,
"page": 1,
"per_page": 20,
"search": " os_major = 7",
"sort": {
"by": null,
"order": null
},
...
The subtotal is 20, which is the results returned and not the actual number of results returned by the search query.
Actions