Class: Graphiti::OpenAPI::SpecificationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Graphiti::OpenAPI::SpecificationsController
- Defined in:
- app/controllers/graphiti/open_api/specifications_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/controllers/graphiti/open_api/specifications_controller.rb', line 5 def index respond_to do |format| format.html format.json { render json: generator.to_openapi } format.yaml { render text: generator.to_openapi(format: :yaml), layout: nil } end end |