swaggerUI:自动填写X-AUTH-TOKEN apikey

时间:2017-09-18 08:10:04

标签: swagger swagger-ui

我的招摇定义中有一个apiKey:

securityDefinition = @SecurityDefinition(
    apiKeyAuthDefinitions = {@ApiKeyAuthDefinition(
        key= "test",
        in = ApiKeyAuthDefinition.ApiKeyLocation.HEADER,
        name = "X-AUTH-TOKEN",
        description = "LHT-AM API KEY"
    )}
)

所以SwaggerUI正确提供授权。

但我如何告诉SwaggerUI从标题中自动填写此授权?

0 个答案:

没有答案