richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined swagger_controller

Uysim opened this issue · comments

commented

got undefined swagger_controller

please make a nice doc

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.