diff --git a/dist/index.html b/dist/index.html index 4bd82d5c..654972f8 100644 --- a/dist/index.html +++ b/dist/index.html @@ -24,6 +24,7 @@ + @@ -49,6 +50,7 @@ } window.swaggerUi = new SwaggerUi({ url: url, + spec: spec, dom_id: "swagger-ui-container", supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'], onComplete: function(swaggerApi, swaggerUi){ @@ -66,36 +68,17 @@ if(window.SwaggerTranslator) { window.SwaggerTranslator.translate(); } - -// addApiKeyAuthorization(); }, onFailure: function(data) { log("Unable to Load SwaggerUI"); }, docExpansion: "none", jsonEditor: false, - apisSorter: "alpha", + // apisSorter: "alpha", defaultModelRendering: 'schema', showRequestHeaders: false }); -// function addApiKeyAuthorization(){ -// var key = encodeURIComponent($('#input_apiKey')[0].value); -// if(key && key.trim() != "") { -// var apiKeyAuth = new SwaggerClient.ApiKeyAuthorization("api_key", key, "query"); -// window.swaggerUi.api.clientAuthorizations.add("api_key", apiKeyAuth); -// log("added key " + key); -// } -// } -// -// $('#input_apiKey').change(addApiKeyAuthorization); - - // if you have an apiKey you would like to pre-populate on the page for demonstration purposes... - /* - var apiKey = "myApiKeyXXXX123456789"; - $('#input_apiKey').val(apiKey); - */ - window.swaggerUi.load(); function log() {