Class: Katello::Api::V2::HostAutocompleteController

Inherits:
Api::V2::BaseController
  • Object
show all
Includes:
Api::TaxonomyScope, Foreman::Controller::AutoCompleteSearch
Defined in:
app/controllers/katello/api/v2/host_autocomplete_controller.rb

Instance Method Summary collapse

Instance Method Details

#action_permissionObject



21
22
23
# File 'app/controllers/katello/api/v2/host_autocomplete_controller.rb', line 21

def action_permission
  'view'
end

#model_of_controllerObject



17
18
19
# File 'app/controllers/katello/api/v2/host_autocomplete_controller.rb', line 17

def model_of_controller
  ::Host::Managed
end

#resource_name(_resource = nil) ⇒ Object



13
14
15
# File 'app/controllers/katello/api/v2/host_autocomplete_controller.rb', line 13

def resource_name(_resource = nil)
  'host'
end