Module: SwaggerDocsGenerator::Methods
- Defined in:
- lib/swagger_docs_generator/methods.rb
Overview
# Methods for controller
Methods adding to controller parsing in rails appliation
Instance Method Summary collapse
-
#swagger_controller(controller, description) ⇒ Object
Create json file for controller.
-
#swagger_doc(controller, action, data = {}) ⇒ Object
Complete json file with datas to method and controller, controller reading.
Instance Method Details
#swagger_controller(controller, description) ⇒ Object
Create json file for controller
10 11 12 13 |
# File 'lib/swagger_docs_generator/methods.rb', line 10 def swagger_controller(controller, description) parse = ParserController.new(controller, description) parse.adding_tag end |
#swagger_doc(controller, action, data = {}) ⇒ Object
Complete json file with datas to method and controller, controller reading
16 17 18 19 |
# File 'lib/swagger_docs_generator/methods.rb', line 16 def swagger_doc(controller, action, data = {}) parse = ParserAction.new(controller, action, data) parse.adding_path end |