mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Update README.md
This commit is contained in:
parent
4b40fb9efe
commit
007b82a9e4
@ -65,14 +65,14 @@ This will expose each of those descriptions as JSON endpoints. Next, you'll need
|
|||||||
SwaggerRails.configure do |c|
|
SwaggerRails.configure do |c|
|
||||||
|
|
||||||
c.swagger_docs = {
|
c.swagger_docs = {
|
||||||
'API V1' => 'v1/swagger.json',
|
'API V1' => 'v1/swagger.json',
|
||||||
'API V2' => 'v2/swagger.json',
|
'API V2' => 'v2/swagger.json',
|
||||||
'API V3' => 'v3/swagger.json'
|
'API V3' => 'v3/swagger.json'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, if you view the swagger-ui, you'll notice that each of these are available in the select box at the top right of the page, allowing you to navigate between the documentations for each version.
|
Now, if you view the swagger-ui, you'll notice that each of these are available in the select box at the top right of the page, allowing users to easily navigate between different versions of your API.
|
||||||
|
|
||||||
## Customizing the UI ##
|
## Customizing the UI ##
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user