Revision 9d43fc71
Added by Michael Moll almost 6 years ago
app/controllers/api/v2/hostgroup_classes_controller.rb | ||
---|---|---|
api :GET, "/hostgroups/:hostgroup_id/puppetclass_ids/", N_("List all Puppet class IDs for host group")
|
||
|
||
def index
|
||
render :json => { root_node_name => HostgroupClass.where(:hostgroup_id => @hostgroup.id).pluck('puppetclass_id') }
|
||
render :json => { root_node_name => HostgroupClass.where(:hostgroup_id => @hostgroup.id).pluck('puppetclass_id') }
|
||
end
|
||
|
||
api :POST, "/hostgroups/:hostgroup_id/puppetclass_ids", N_("Add a Puppet class to host group")
|
Also available in: Unified diff
Fixes #19789 - fix Layout/SpaceAroundOperators cop