mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
Support multiple swagger documents. Add custom_ui_generator. Update readme
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"info": {
|
||||
"version": "0.0.0",
|
||||
"title": "[Enter a description for your API here]",
|
||||
"description": "The docs below are powered by the default swagger.json installed with swagger_rails. Please update it to describe your API. See here for the complete swagger spec - https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md"
|
||||
"description": "The docs below are powered by the default swagger.json that gets installed with swagger_rails. You'll need to update it to describe your API. See here for the complete swagger spec - https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md"
|
||||
},
|
||||
"paths": {
|
||||
"/a/sample/resource": {
|
||||
|
||||
@@ -1,8 +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 V1' => 'v1/swagger.json'
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user