mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
Merge branch 'openapi/master' into openapi/merge
This commit is contained in:
@@ -5,4 +5,4 @@ Example:
|
||||
rails generate rswag:api:install
|
||||
|
||||
This will create:
|
||||
config/initializers/rswag-api.rb
|
||||
config/initializers/rswag_api.rb
|
||||
|
||||
@@ -7,7 +7,7 @@ module Rswag
|
||||
source_root File.expand_path('../templates', __FILE__)
|
||||
|
||||
def add_initializer
|
||||
template('rswag-api.rb', 'config/initializers/rswag-api.rb')
|
||||
template('rswag_api.rb', 'config/initializers/rswag_api.rb')
|
||||
end
|
||||
|
||||
def add_routes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Rswag::Api.configure do |c|
|
||||
OpenApi::Rswag::Api.configure do |c|
|
||||
|
||||
# Specify a root folder where Swagger JSON files are located
|
||||
# This is used by the Swagger middleware to serve requests for API descriptions
|
||||
Reference in New Issue
Block a user