Class: Api::V1::SettingsController

Inherits:
BaseController show all
Defined in:
app/controllers/api/v1/settings_controller.rb

Instance Method Summary collapse

Methods included from Api::Version1

#api_version

Methods inherited from BaseController

#get_resource, #resource_class, #resource_name, #resource_scope

Methods included from Foreman::ThreadSession::Cleaner

#clear_thread, included

Instance Method Details

#indexObject


13
14
15
# File 'app/controllers/api/v1/settings_controller.rb', line 13

def index
  @settings = Setting.search_for(*search_options).paginate(paginate_options)
end

#showObject


20
21
# File 'app/controllers/api/v1/settings_controller.rb', line 20

def show
end

#updateObject


29
30
31
# File 'app/controllers/api/v1/settings_controller.rb', line 29

def update
  process_response @setting.update_attributes(params[:setting])
end