Nothing generates on /swagger_doc (Ruby 3 + Rails 6)
matiasasis opened this issue · comments
Mati. A commented
Hey grape-swagger team!
I'm trying to setup swagger and after adding the gem and the add_swagger_documentation
I'm getting no response at /swagger_doc
.
ActionController::RoutingError (No route matches [GET] "/swagger_doc"):
I've tried adding a custom mount_path
and had no luck either.
Gemfile:
ruby '3.0.0'
gem 'active_interaction', '~> 4.0'
gem 'bootsnap', '>= 1.4.4', require: false
gem 'pg', '~> 1.1'
gem 'puma', '~> 5.0'
gem 'rails', '~> 6.1.1'
gem 'sidekiq', '~> 6.1.3'
gem 'sidekiq-failures', '~> 1.0.0'
gem 'grape', github: 'ruby-grape/grape', ref: 'HEAD'
gem 'grape_on_rails_routes', '~> 0.3.2'
gem 'grape-swagger', '~> 1.3.1'
api/main/api.rb:
module Main
class API < Grape::API
prefix :api
version :v1, using: :path
format :json
mount Dummies::API
add_swagger_documentation
end
end
peter scholz commented
please update to 1.4.0