Project

General

Profile

Actions

Bug #25616

open

API v2 returns json with empty sort parameter

Added by Avi Sharvit over 5 years ago.

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

Description

When I make an API call to a path like `/api/v2/hosts` or `/api/v2/architectures` I am getting an empty value in the `sort` parameter.

Response example for `/api/v2/architectures`:
``` {
"total": 2,
"subtotal": 2,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [ ... ]
}
```

In the end, it is sorted by a default-scope but I can't know what was the default sorting scope.

No data to display

Actions

Also available in: Atom PDF