mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Serve Swagger docs via middleware
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
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'
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user