Class: ForemanAcd::Api::V2::AppDefinitionsController
- Inherits:
-
BaseController
- Object
- Api::V2::BaseController
- BaseController
- ForemanAcd::Api::V2::AppDefinitionsController
- Includes:
- Concerns::AppDefinitionParameters
- Defined in:
- app/controllers/foreman_acd/api/v2/app_definitions_controller.rb
Overview
API controller for App Definitions
Instance Method Summary collapse
- #controller_permission ⇒ Object
- #create ⇒ Object
- #destroy ⇒ Object
- #index ⇒ Object
- #resource_class ⇒ Object
- #show ⇒ Object
Methods included from Concerns::AppDefinitionParameters
Instance Method Details
#controller_permission ⇒ Object
45 46 47 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 45 def 'app_definitions' end |
#create ⇒ Object
34 35 36 37 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 34 def create @app_definition = AppDefinition.new(app_definition_params) process_response @app_definition.save end |
#destroy ⇒ Object
41 42 43 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 41 def destroy process_response @app_definition.destroy end |
#index ⇒ Object
19 20 21 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 19 def index @app_definitions = resource_scope_for_index end |
#resource_class ⇒ Object
49 50 51 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 49 def resource_class ForemanAcd::AppDefinition end |
#show ⇒ Object
14 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 14 def show; end |