mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
Add note about Swagger-UI 3.x :responses
This commit is contained in:
parent
be23cd169e
commit
f538208fd0
1 changed files with 4 additions and 0 deletions
|
|
@ -65,6 +65,10 @@ Webjars also hosts a [version](https://github.com/webjars/swagger-ui) of the swa
|
||||||
|
|
||||||
**NOTE:** If you want to use swagger-ui 2.x you can do so by explicitly downgrading `metosin/ring-swagger-ui` to `2.2.10`.
|
**NOTE:** If you want to use swagger-ui 2.x you can do so by explicitly downgrading `metosin/ring-swagger-ui` to `2.2.10`.
|
||||||
|
|
||||||
|
**NOTE:** If you use swagger-ui 3.x, you need to include `:responses` for Swagger-UI
|
||||||
|
to display the response when trying out endpoints. You can define `:responses {200 {:schema s/Any}}`
|
||||||
|
at the top-level to show responses for all endpoints.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
### Simple example
|
### Simple example
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue