mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
Serve Swagger docs via middleware
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
SwaggerRails.configure do |c|
|
||||
|
||||
# Specify the API version and hence discovery_url (e.g. swagger/v1/swagger.json)
|
||||
# that will be used to power the embedded swagger-ui
|
||||
c.target_api_version = 'v1'
|
||||
# List the names and paths of Swagger
|
||||
# documents you'd like to expose in your swagger-ui
|
||||
c.swagger_docs = {
|
||||
'API V1' => '/swagger/v1/swagger.json',
|
||||
'API V2' => '/swagger/v2/swagger.json'
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user