Support multiple swagger documents. Add custom_ui_generator. Update readme

This commit is contained in:
domaindrivendev
2016-02-05 14:47:55 -08:00
parent df4b9c80c9
commit 4b40fb9efe
18 changed files with 298 additions and 14 deletions

View File

@@ -1,9 +1,8 @@
SwaggerRails.configure do |c|
# List the names and paths of Swagger
# List the names and paths (relative to config/swagger) 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'
'API V1' => 'v1/swagger.json'
}
end