richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.
MIT License
749 stars 150 forks source link

undefined swagger_controller #167

Closed Uysim closed 6 years ago

Uysim commented 7 years ago

got undefined swagger_controller

please make a nice doc

przbadu commented 7 years ago

Hi you can include below line in your base api controller

EXAMPLE

class API::V1::BaseController < ActionController::Base
  include Swagger::Docs::ImpotentMethods
end

and the error should go away.