Class: Docit::UiController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/docit/ui_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
# File 'app/controllers/docit/ui_controller.rb', line 5

def index
  render html: swagger_ui_html.html_safe, layout: false
end

#specObject



9
10
11
12
# File 'app/controllers/docit/ui_controller.rb', line 9

def spec
  RouteInspector.eager_load_controllers!
  render json: SchemaGenerator.generate
end