Class: Api::V2::ForemanDatacenter::DeviceBayTemplatesController
- Inherits:
-
BaseController
- Object
- V2::BaseController
- BaseController
- Api::V2::ForemanDatacenter::DeviceBayTemplatesController
show all
- Includes:
- ForemanDatacenter::Controller::Parameters::DeviceBayTemplate
- Defined in:
- app/controllers/api/v2/foreman_datacenter/device_bay_templates_controller.rb
Instance Method Summary
collapse
#action_permission, #controller_permission, #find_resource, #resource_class, #resource_class_for, #resource_finder, #resource_name, #resource_scope, #scope_for
Instance Method Details
#create ⇒ Object
34
35
36
37
|
# File 'app/controllers/api/v2/foreman_datacenter/device_bay_templates_controller.rb', line 34
def create
@device_bay_template = ::ForemanDatacenter::DeviceBayTemplate.new(device_bay_template_params)
process_response @device_bay_template.save
end
|
#destroy ⇒ Object
42
43
44
|
# File 'app/controllers/api/v2/foreman_datacenter/device_bay_templates_controller.rb', line 42
def destroy
process_response @device_bay_template.destroy
end
|
#index ⇒ Object
14
15
16
|
# File 'app/controllers/api/v2/foreman_datacenter/device_bay_templates_controller.rb', line 14
def index
@device_bay_templates = resource_scope_for_index
end
|
#show ⇒ Object
21
22
|
# File 'app/controllers/api/v2/foreman_datacenter/device_bay_templates_controller.rb', line 21
def show
end
|