We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff80a29 + 60e9c08 commit f13a058Copy full SHA for f13a058
index.html
@@ -42,9 +42,12 @@
42
});
43
*/
44
}
45
+
46
$('pre code').each(function(i, e) {
47
hljs.highlightBlock(e)
48
49
50
+ addApiKeyAuthorization();
51
},
52
onFailure: function(data) {
53
log("Unable to Load SwaggerUI");
@@ -53,9 +56,8 @@
56
sorter : "alpha"
54
57
55
58
- function addApiKeyAuthorization() {
59
+ function addApiKeyAuthorization(){
60
var key = encodeURIComponent($('#input_apiKey')[0].value);
- log("key: " + key);
61
if(key && key.trim() != "") {
62
var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("api_key", key, "query");
63
window.swaggerUi.api.clientAuthorizations.add("api_key", apiKeyAuth);
0 commit comments