Sha256: 1907d548fdadae226dd445f2ada308d4b59b6da6e09a484a21b35cf64622dd46

Contents?: true

Size: 486 Bytes

Versions: 31

Compression:

Stored size: 486 Bytes

Contents

module Katello
  class Api::V2::HostAutocompleteController < ::Api::V2::BaseController
    include ::Api::TaxonomyScope
    include ::Foreman::Controller::AutoCompleteSearch

    before_action :find_optional_nested_object

    resource_description do
      api_version 'v2'
      api_base_url "/api"
    end

    def resource_name(_resource = nil)
      'host'
    end

    def model_of_controller
      ::Host::Managed
    end

    def action_permission
      'view'
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
katello-3.3.0 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.3.0.rc2 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.3.0.rc1.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.3.0.rc1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.2.1.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.2.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.2.0 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.2.0.rc3 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.2.0.rc2 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.2.0.rc1.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.2.0.rc1 app/controllers/katello/api/v2/host_autocomplete_controller.rb