Sha256: 3dacfc9e941b956c8aa47fc5757b7761360078e0b9401aa32b3e94f643f621a0

Contents?: true

Size: 484 Bytes

Versions: 13

Compression:

Stored size: 484 Bytes

Contents

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

    before_filter :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

13 entries across 13 versions & 1 rubygems

Version Path
katello-3.1.0.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.1.0 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.1.0.rc2.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.0.2 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.1.0.rc1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.0.1 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.0.0 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.0.0.rc7 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.0.0.rc5 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.0.0.rc4 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.0.0.rc3 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.0.0.rc2 app/controllers/katello/api/v2/host_autocomplete_controller.rb
katello-3.0.0.rc1 app/controllers/katello/api/v2/host_autocomplete_controller.rb