as I needed that too I tried that but couldn't reuse the securityDefinition as the swagger editor reported that it is invalid. So I'm using now separate definitions for security and for the query parameter (is that intended?).
But the main problem is now that the JS client is no longer working. It says 'missing parameter: key' although I do
this.api.clientAuthorizations.add("apiKey", new SwaggerClient.ApiKeyAuthorization("key", key, "query"));
What could be wrong here? And how would you handle the api key authentication accross the clients?
Regards,
Peter
PS: is anyone really recommending to use swagger JS in production for its customers? It is 200KB large and that is the minified version...