Add note about Swagger-UI 3.x :responses

This commit is contained in:
Juho Teperi 2020-03-24 12:28:22 +02:00
parent be23cd169e
commit f538208fd0

View file

@ -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