Sha256: 42b0ef1042441501fe83c7b07d2ae0ea89b30e33800390b2199593312db0ff52

Contents?: true

Size: 952 Bytes

Versions: 8

Compression:

Stored size: 952 Bytes

Contents

Foreman::Application.routes.prepend do
  namespace :api, defaults: { format: 'json' } do
    scope '(:apiv)', module: :v2, defaults: { apiv: 'v2' }, apiv: /v2/, constraints: ApiConstraints.new(version: 2, default: true) do
      resources :puppetclasses, controller: '/foreman_puppet/api/v2/puppetclasses', except: %i[new edit]
      resources :environments, controller: '/foreman_puppet/api/v2/environments', except: %i[new edit]
      resources :hosts, controller: '/foreman_puppet/api/v2/hosts', only: []
      resources :hostgroups, controller: '/foreman_puppet/api/v2/hostgroups', only: %i[]
      resources :config_groups, controller: '/foreman_puppet/api/v2/config_groups', except: %i[new edit]
      resources :smart_class_parameters, controller: '/foreman_puppet/api/v2/smart_class_parameters', except: %i[new edit]
      resources :override_values, controller: '/foreman_puppet/api/v2/override_values', except: %i[new edit]
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
foreman_puppet-1.0.5 config/initializers/api_reroute.rb
foreman_puppet-1.0.4 config/initializers/api_reroute.rb
foreman_puppet-1.0.3 config/initializers/api_reroute.rb
foreman_puppet-1.0.2 config/initializers/api_reroute.rb
foreman_puppet-1.0.1 config/initializers/api_reroute.rb
foreman_puppet-1.0.0 config/initializers/api_reroute.rb
foreman_puppet-1.0.0.rc.2 config/initializers/api_reroute.rb
foreman_puppet-1.0.0.rc.1 config/initializers/api_reroute.rb