swagger-api/swagger-codegen

[JAVA] Using API Key in Swagger with JAVA

Open

#7.090 aberto em 1 de dez. de 2017

Ver no GitHub
 (7 comments) (0 reactions) (0 assignees)HTML (5.474 forks)batch import
General: Suggestionhelp wanted

Métricas do repositório

Stars
 (12.701 stars)
Métricas de merge de PR
 (Mesclagem média 4h 43m) (10 fundiu PRs em 30d)

Description

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

Guia do colaborador