metosin / compojure-api

Sweet web apis with Compojure & Swagger
http://metosin.github.io/compojure-api/doc/
Eclipse Public License 1.0
1.11k stars 149 forks source link

how to use auth in some api path #382

Closed vinurs closed 6 years ago

vinurs commented 6 years ago

Hi, Follow the https://github.com/metosin/compojure-api/wiki/Swagger-integration, I add the x-apikey authentication in my swagger data: image

then, how can i use it in some path? in specification [2.0](https://swagger.io/docs/specification/2-0/authentication/api-keys/## Library Version(s) ), it says, need a security definition, but when i define it image

It seems doesn't affect. so how can i define it ,then it will automatically add the api-key in header in some api path?