Does the library not support API key security definitions (and if so please can it be added) or am I doing something wrong? If I post the above output into the swagger UI it complains there's no security definition for apiKey. The docs show it should take an in parameter and a name.
How can I annotate my API classes so that swagger-play generates the correct security definitions for an X-Auth-Token security header token?
There's an example of adding an API key definition here.
This annotation doesn't produce valid output:
It should produce an accompanying securityDefinition object something like:
Instead it just produces the following:
See the docs here.
Does the library not support API key security definitions (and if so please can it be added) or am I doing something wrong? If I post the above output into the swagger UI it complains there's no security definition for
apiKey
. The docs show it should take anin
parameter and aname
.How can I annotate my API classes so that swagger-play generates the correct security definitions for an
X-Auth-Token
security header token?There's an example of adding an API key definition here.