I want to enable api_key security definition in my Swagger 
client/documentation.

I use swagger-ui-2.2.10.

I use JAX-RS with CXF, and *Swagger2Feature with a (Spring) bean.xml 
configuration*.


I want to activate my http,https schemes too.


Here is an example what I want to get: authorize button 
<https://i.stack.imgur.com/quoao.jpg> and authorization with api key 
<https://i.stack.imgur.com/kvDwF.jpg>

I am not sure if I can do that wit Swagger annotations like:

 authorizations = {@Authorization(value="api_key")}
or
@ApiKeyAuthDefinition(name="Authorization", description="X-API-Key", in=
ApiKeyLocation.HEADER, key = "")


Regards,

Manuel


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to