Fork me on GitHub
#ring-swagger
<
2017-04-16
>
plins03:04:35

is it possible to protect the docs with some kind of password? im looking at https://github.com/metosin/compojure-api/wiki/Swagger-integration but without success

ikitommi13:04:30

@plins Best way to do that is not to use swagger api-options but to use swagger-routes directly. This way, you can add custom (authentication) middleware in front of the swagger-artefacts. Hope this helps. Here’s how to: https://github.com/metosin/compojure-api/wiki/Swagger-integration#swagger-routes