Project

General

Profile

Actions

Feature #6794

closed

Missing search parameter for template kinds

Added by Dominic Cleal almost 10 years ago. Updated almost 6 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1123868
Description of problem:
Missing search option for subscriptions. In the API documentation the search optional is also not mentioned.
Having a search option makes it easier to retrieve the correct version in a single query without parsing the complete JSON output.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. curl -XGET --data-urlencode "search=name=provision" https://localhost/api/v2/template_kinds {
"total": 8,
"subtotal": 8,
"page": 1,
"per_page": 20,
"search": "name=provision",
"sort": {
"by": null,
"order": null
},
"results": [{"name":"PXELinux","id":1,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"PXEGrub","id":2,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"iPXE","id":3,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"provision","id":4,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"finish","id":5,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"script","id":6,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"user_data","id":7,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"},{"name":"ZTP","id":8,"created_at":"2014-07-11T09:07:16Z","updated_at":"2014-07-11T09:07:16Z"}]
}

2.
3.

Actual results:
Return only the provision item

Expected results:

Additional info:

Actions

Also available in: Atom PDF