swagger-api/swagger-codegen

[JAVA] Using API Key in Swagger with JAVA

开放

#7,090 创建于 2017年12月1日

 (7 条评论) (0 个反应) (0 位负责人)HTML (5,474 个派生)batch import
General: Suggestionhelp wanted

仓库指标

星标
 (12,701 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Description

I have created a YAML file with the Swagger Editor (Local). I used API keys as security. I then downloaded the server source code via the Swagger Editor. in the Java codes, the API-KEY does not appear, if I test the server I can use the calls without API-KEY, even though this is defined differently in the YAML file. Am I doing something wrong, is my approach wrong or is this an error generating the source code?

Swagger-codegen version

Swagger Editor Version 2.10.3

Swagger declaration file content or url
Command line used for generation

no command line i use the editor

Steps to reproduce

N/A swagger (4).yaml.zip

贡献者指南