I found out that I had used swagger 1.5.9 that doesn't have 
SecurityDefinition.
I upgraded to 1.5.12.
Now how should look my annotation to genarate this in yaml:
securityDefinitions:
  X-Auth-Token:
    type: "apiKey"
    name: "X-Auth-Token"
    in: "header"
    flow: "implicit"

Thanks.

בתאריך יום חמישי, 9 במרץ 2017 בשעה 11:32:09 UTC+2, מאת lior solodkin:
>
> Hi,
>
> I would like to add an option to my Swagger UI, that the user could fill 
> once a token that he received, and than it will be send in the header in 
> each API call.
>
> I tried to use securityDefinitions, but didn't manage to get it work 
> with X-Auth-Token. Can it work this way?
> If it can work what should I do? and how to integrate it to be part of the 
> json and yaml?
>
> I am using swagger-jaxrs 1.5.9 in java by definding a beanConfig.
>
> Thanks a lot,
> Lior
>

-- 
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to