Project

General

Profile

« Previous | Next » 

Revision 708401d0

Added by Thomas McKay over 10 years ago

ak-sysgroup - updated activation keys for system groups

ak-sysgroup - rubocop cleanup

ak-sysgroup - remove obsolete view files

ak-sysgroup - pull-request clean up

View differences:

app/controllers/katello/api/v2/system_groups_controller.rb
param :activation_key_id, :identifier, :desc => "activation key identifier"
param :system_id, :identifier, :desc => "system identifier"
def index
subscriptions = if @system
index_system
elsif @activation_key
index_activation_key
else
index_organization
end
respond_for_index(:collection => subscriptions)
results = if @system
index_system
elsif @activation_key
index_activation_key
else
index_organization
end
respond_for_index(:collection => results)
end
api :POST, "/system_groups", "Create a system group"

Also available in: Unified diff