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
46 47 48 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 46 def 'app_definitions' end |
#create ⇒ Object
35 36 37 38 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 35 def create @app_definition = AppDefinition.new(app_definition_params) process_response @app_definition.save end |
#destroy ⇒ Object
42 43 44 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 42 def destroy process_response @app_definition.destroy end |
#index ⇒ Object
20 21 22 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 20 def index @app_definitions = resource_scope_for_index end |
#resource_class ⇒ Object
50 51 52 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 50 def resource_class ForemanAcd::AppDefinition end |
#show ⇒ Object
14 15 |
# File 'app/controllers/foreman_acd/api/v2/app_definitions_controller.rb', line 14 def show end |