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.5.2 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.5.1.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.5.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.5.0.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.5.0 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.5.0.rc2 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.5.0.rc1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.4.5 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.4.4 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.4.2 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.4.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.4.0.2 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.4.0.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.3.2 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.4.0 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.4.0.rc2 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.4.0.rc1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.3.1.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.3.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.3.0.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb