\x91\xbbִE5\x14\x9f\x1d\\\x0f\xf8\x89c\xb9\xfa\xd7Y\x1c\x1bL!\xe4܂P\x86\x12\x93\xb9_\x1c\x9f[\x11\xba\x13\xc7r\xf3\xae^S\x82v(>\xb3\xe1\v\xe0\x91\xea\xf4R\xe2ĕV?\x9b&t\xf4\xd3\aP˴\xd6\xdb\x00ӝ\xc6\xfd\a\xed\xe8X\x9d\xcd\v]\xf3\x00\x00\x00\x00IEND\xaeB`\x82") +var _third_party_swagger_ui_images_wordnik_api_png = []byte("\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x18\x00\x00\x00\x18\b\x06\x00\x00\x00\xe0w=\xf8\x00\x00\x00\x04sBIT\b\b\b\b|\bd\x88\x00\x00\x00\tpHYs\x00\x00\v\x12\x00\x00\v\x12\x01\xd2\xdd~\xfc\x00\x00\x00\x1ctEXtSoftware\x00Adobe Fireworks CS5q\xb5\xe36\x00\x00\x03NIDATH\x89\xa5\x95Mh\\U\x14\xc7\u007fg&\x8d\x19'3\xa3\xb4\x04\x85Lg\x92n\x94,\xac\x1b\xed\xa2\xad\xa8\x11E\x8cZZ\x17\xd6D\x90\xba(EGĕ\xb6\xd8\tU\xb0 h\xa5\xf8Aj\xc1\xa6_\v+\xa5\xadH@\x02~!-\n\xe2\xc2n\xecL҉؈U'\x93\xe9K\x9c{\xdfq\x91\x99\xc9}\xf3\x01\x03\xfe\xe1\xf0\xee\xfd\xbfs\xfe\xe7\u070fw\x9e\xd0!\x96\x8e\xf6o\x03\xc6\x00\x8bp\xb8繹\xaf:\x89\xeb\xea4\x01\xca\xf3\xc0\xa3ձ\at\x94 ԉ\xd3ґ\xfe\xb5\xf8\f\xe3C\xd5F\x96\x8e\xf4'\x1a\xfdn|\xd6/\x8d\\`\x05\xde\xd1d\x17˜\x01<\x94\xb7#{\n?\x00hEv\x03ݎ\xeb-\xc0\v\xc0\x9b\x00\xde\a\xc9\a\x81q\xe6)y\x1f'\x1f\x8f\xec*Tj\x8e\xf5\x8cޡd\x940\xe7\x80\a\x1c\xa13@\x12\xb8\xa7\xcd\xe2.\x02\xbf\x03O:ܗXF\"/\x15\x96\x82+\x10\xbaղ\xb1A`{\x1b\xe1\x1a\xeem\xc1m\x10Y\xdd\xfa\xfa \x92)\xfc\x8d\x95q\xac\xf0\xff\x8cl$S\xb8є\x00\x00\x13\xfa\x10\xcb\x15,\x04\xccT\xad\xdd|\xd5.˿k\x8e\xbb\x92\x81C6\xb7\xffS\t\xff\x16_\xae\x13\n\"|\n\\\x06\xb6*\xdc\a +W\xf4k\xe0NUv\xac\x9e$a\xfff/p\x93\xea\x93\xf2[\xa9\b\x86\x17\x81\x83\xab\xf2:\x1a\xddw\xf5d\xdd\xe7\x8d\xf5\x93\x00\xd1}W\xc7\x1cn'\xc8qG\xebUB\x1c\x8e\xbe6\xbb\b \xe5lj30\x82\xf0\x140\xe0$\xff6\xba\u007fv\x8b[M9\x9bN\x00D\xb33\xc5\x00?\x9e\xfa\x06\xd8\xecP\xd7P\xce\x02S]\xf8L(\xdc!+%\xbb\x98\xa3\x01\x8d\xc25\xa8\r\xfa\n\xdc\x06\xec\x06\x1e\n\xa9\x95(VЦ\x83\x95\xe1Ž\xe9\xbeV\x82.\x16\xf7\xa6\xfb02\xecƪ\x05\xb5\x82Z\xe9\ta\xf9\x04˯\x18\x01\xe3\\7\x9fuXN\x97\xb3\xe9\xb6\xfd\xca{'\x1d\xc2rrŷ\x1aW\xd7\xe1G,\xef\n\xc0\xe2+\xe9\x1e\xc2lQ%\x03<\x16\\?\xa7\x88\xeahl|\xd6w\xe9\xd2\xfeT\x88\xb2L\"\xecl\xc8\xfb\xb9\b\a)\xf2]\xefG3~\xe0J\x952\xe9\x18a\xf2\xc0چ\xa0S\xf4\xcah\xec@\xde\a(\x1dH\v\u007fq\x02x\xba\xc1\xef:>\x83\xb1C3\v5\xa2\xa9\xfb\x952\x03\xdf\x03\x9bZ\xec\xc8\x05\xe9b\a\x80\x1aN\x13\xec?5\xfc\x14{/\u007f\xb7K\x04\x12,\xec\x19؊0\r\x84[\x04\x03LU\x9f\x0f\xb7y\xaf(O\xc4\xdfϟoJ\xb0\xb0k \xc4\x1a\xa6\x80\xe16\xc1\x9d\xe2g,\x9b\xe2\x13y\x0f\xdcV\x11\x92^,\x83N- \xfc\tĀ\x9bZ\xd4\n\xc22PBY\xe7\xecE\x1f\x90\x00
\x91\xbbִE5\x14\x9f\x1d\\\x0f\xf8\x89c\xb9\xfa\xd7Y\x1c\x1bL!\xe4܂P\x86\x12\x93\xb9_\x1c\x9f[\x11\xba\x13\xc7r\xf3\xae^S\x82v(>\xb3\xe1\v\xe0\x91\xea\xf4R\xe2ĕV?\x9b&t\xf4\xd3\aP˴\xd6\xdb\x00ӝ\xc6\xfd\a\xed\xe8X\x9d\xcd\v]\xf3\x00\x00\x00\x00IEND\xaeB`\x82") -func www_swagger_ui_images_wordnik_api_png_bytes() ([]byte, error) { - return _www_swagger_ui_images_wordnik_api_png, nil +func third_party_swagger_ui_images_wordnik_api_png_bytes() ([]byte, error) { + return _third_party_swagger_ui_images_wordnik_api_png, nil } -func www_swagger_ui_images_wordnik_api_png() (*asset, error) { - bytes, err := www_swagger_ui_images_wordnik_api_png_bytes() +func third_party_swagger_ui_images_wordnik_api_png() (*asset, error) { + bytes, err := third_party_swagger_ui_images_wordnik_api_png_bytes() if err != nil { return nil, err } - info := bindata_file_info{name: "www/swagger-ui/images/wordnik_api.png", size: 980, mode: os.FileMode(416), modTime: time.Unix(1419029016, 0)} + info := bindata_file_info{name: "third_party/swagger-ui/images/wordnik_api.png", size: 980, mode: os.FileMode(416), modTime: time.Unix(1420491569, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _www_swagger_ui_index_html = []byte(` +var _third_party_swagger_ui_index_html = []byte(`
";if(C=s.description){C=C.call(E,{hash:{},data:D})}else{C=E.description;C=typeof C===e?C.apply(E):C}if(C||C===0){B+=C}B+="
\n ";return B}function m(C,B){return'\n\n
Parameter | \nValue | \nDescription | \nParameter Type | \nData Type | \n
---|
HTTP Status Code | \nReason | \nResponse Model | \n
---|
';if(c=d.sampleJSON){c=c.call(k,{hash:{},data:i})}else{c=k.sampleJSON;c=typeof c===f?c.apply(k):c}g+=h(c)+'
\n \n
").text(Q);I=$('').append(G)}else{if(P==="application/xml"||/\+xml$/.test(P)){G=$("
").text(this.formatXml(N));I=$('').append(G)}else{if(P==="text/html"){G=$("
").html(_.escape(N));I=$('').append(G)}else{if(/^image\//.test(P)){I=$("
").text(N);I=$('').append(G)}}}}}L=I;$(".request_url",$(this.el)).html("");$(".request_url pre",$(this.el)).text(F);$(".response_code",$(this.el)).html(""+J.status+"");$(".response_body",$(this.el)).html(L);$(".response_headers",$(this.el)).html("
"+_.escape(JSON.stringify(J.headers,null," ")).replace(/\n/g,"");$(".response",$(this.el)).slideDown();$(".response_hider",$(this.el)).show();$(".response_throbber",$(this.el)).hide();K=$(".response_body",$(this.el))[0];E=this.options.swaggerOptions;if(E.highlightSizeThreshold&&J.data.length>E.highlightSizeThreshold){return K}else{return hljs.highlightBlock(K)}};C.prototype.toggleOperationContent=function(){var E;E=$("#"+Docs.escapeName(this.model.parentId+"_"+this.model.nickname+"_content"));if(E.is(":visible")){return Docs.collapseOperation(E)}else{return Docs.expandOperation(E)}};return C})(Backbone.View);r=(function(D){y(C,D);function C(){e=C.__super__.constructor.apply(this,arguments);return e}C.prototype.initialize=function(){};C.prototype.render=function(){var F,E,G;G=this.template();$(this.el).html(G(this.model));if(swaggerUi.api.models.hasOwnProperty(this.model.responseModel)){F={sampleJSON:JSON.stringify(swaggerUi.api.models[this.model.responseModel].createJSONSample(),null,2),isParam:false,signature:swaggerUi.api.models[this.model.responseModel].getMockSignature()};E=new j({model:F,tagName:"div"});$(".model-signature",this.$el).append(E.render().el)}else{$(".model-signature",this.$el).html("")}return this};C.prototype.template=function(){return Handlebars.templates.status_code};return C})(Backbone.View);m=(function(D){y(C,D);function C(){c=C.__super__.constructor.apply(this,arguments);return c}C.prototype.initialize=function(){return Handlebars.registerHelper("isArray",function(F,E){if(F.type.toLowerCase()==="array"||F.allowMultiple){return E.fn(this)}else{return E.inverse(this)}})};C.prototype.render=function(){var E,F,I,G,J,H,M,N,L,K;K=this.model.type||this.model.dataType;if(typeof K==="undefined"){H=this.model.schema;if(H&&H["$ref"]){G=H["$ref"];if(G.indexOf("#/definitions/")===0){K=G.substring("#/definitions/".length)}else{K=G}}}this.model.type=K;this.model.paramType=this.model["in"]||this.model.paramType;if(this.model.paramType==="body"){this.model.isBody=true}if(K&&K.toLowerCase()==="file"){this.model.isFile=true}this.model["default"]=this.model["default"]||this.model.defaultValue;if(this.model.allowableValues){this.model.isList=true}L=this.template();$(this.el).html(L(this.model));M={sampleJSON:this.model.sampleJSON,isParam:true,signature:this.model.signature};if(this.model.sampleJSON){N=new j({model:M,tagName:"div"});$(".model-signature",$(this.el)).append(N.render().el)}else{$(".model-signature",$(this.el)).html(this.model.signature)}F=false;if(this.model.isBody){F=true}E={isParam:F};E.consumes=this.model.consumes;if(F){I=new n({model:E});$(".parameter-content-type",$(this.el)).append(I.render().el)}else{J=new o({model:E});$(".response-content-type",$(this.el)).append(J.render().el)}return this};C.prototype.template=function(){if(this.model.isList){return Handlebars.templates.param_list}else{if(this.options.readOnly){if(this.model.required){return Handlebars.templates.param_readonly_required}else{return Handlebars.templates.param_readonly}}else{if(this.model.required){return Handlebars.templates.param_required}else{return Handlebars.templates.param}}}};return C})(Backbone.View);j=(function(D){y(C,D);function C(){a=C.__super__.constructor.apply(this,arguments);return a}C.prototype.events={"click a.description-link":"switchToDescription","click a.snippet-link":"switchToSnippet","mousedown .snippet":"snippetToTextArea"};C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));this.switchToSnippet();this.isParam=this.model.isParam;if(this.isParam){$(".notice",$(this.el)).text("Click to set as parameter value")}return this};C.prototype.template=function(){return Handlebars.templates.signature};C.prototype.switchToDescription=function(E){if(E!=null){E.preventDefault()}$(".snippet",$(this.el)).hide();$(".description",$(this.el)).show();$(".description-link",$(this.el)).addClass("selected");return $(".snippet-link",$(this.el)).removeClass("selected")};C.prototype.switchToSnippet=function(E){if(E!=null){E.preventDefault()}$(".description",$(this.el)).hide();$(".snippet",$(this.el)).show();$(".snippet-link",$(this.el)).addClass("selected");return $(".description-link",$(this.el)).removeClass("selected")};C.prototype.snippetToTextArea=function(E){var F;if(this.isParam){if(E!=null){E.preventDefault()}F=$("textarea",$(this.el.parentNode.parentNode.parentNode));if($.trim(F.val())===""){return F.val(this.model.sampleJSON)}}};return C})(Backbone.View);l=(function(C){y(D,C);function D(){A=D.__super__.constructor.apply(this,arguments);return A}D.prototype.initialize=function(){};D.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));$("label[for=contentType]",$(this.el)).text("Response Content Type");return this};D.prototype.template=function(){return Handlebars.templates.content_type};return D})(Backbone.View);o=(function(C){y(D,C);function D(){z=D.__super__.constructor.apply(this,arguments);return z}D.prototype.initialize=function(){};D.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));$("label[for=responseContentType]",$(this.el)).text("Response Content Type");return this};D.prototype.template=function(){return Handlebars.templates.response_content_type};return D})(Backbone.View);n=(function(D){y(C,D);function C(){d=C.__super__.constructor.apply(this,arguments);return d}C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));$("label[for=parameterContentType]",$(this.el)).text("Parameter content type:");return this};C.prototype.template=function(){return Handlebars.templates.parameter_content_type};return C})(Backbone.View);t=(function(D){y(C,D);function C(){b=C.__super__.constructor.apply(this,arguments);return b}C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));return this};C.prototype.events={"click #apikey_button":"toggleApiKeyContainer","click #apply_api_key":"applyApiKey"};C.prototype.applyApiKey=function(){var E;window.authorizations.add(this.model.name,new ApiKeyAuthorization(this.model.name,$("#input_apiKey_entry").val(),this.model["in"]));window.swaggerUi.load();return E=$("#apikey_container").show()};C.prototype.toggleApiKeyContainer=function(){var E;if($("#apikey_container").length>0){E=$("#apikey_container").first();if(E.is(":visible")){return E.hide()}else{$(".auth_container").hide();return E.show()}}};C.prototype.template=function(){return Handlebars.templates.apikey_button_view};return C})(Backbone.View);k=(function(D){y(C,D);function C(){B=C.__super__.constructor.apply(this,arguments);return B}C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));return this};C.prototype.events={"click #basic_auth_button":"togglePasswordContainer","click #apply_basic_auth":"applyPassword"};C.prototype.applyPassword=function(){var F,E,G;console.log("applying password");G=$(".input_username").val();E=$(".input_password").val();window.authorizations.add(this.model.type,new PasswordAuthorization("basic",G,E));window.swaggerUi.load();return F=$("#basic_auth_container").hide()};C.prototype.togglePasswordContainer=function(){var E;if($("#basic_auth_container").length>0){E=$("#basic_auth_container").show();if(E.is(":visible")){return E.slideUp()}else{$(".auth_container").hide();return E.show()}}};C.prototype.template=function(){return Handlebars.templates.basic_auth_button_view};return C})(Backbone.View)}).call(this);`) +var _third_party_swagger_ui_swagger_ui_min_js = []byte(`$(function(){$.fn.vAlign=function(){return this.each(function(c){var a=$(this).height();var d=$(this).parent().height();var b=(d-a)/2;$(this).css("margin-top",b)})};$.fn.stretchFormtasticInputWidthToParent=function(){return this.each(function(b){var d=$(this).closest("form").innerWidth();var c=parseInt($(this).closest("form").css("padding-left"),10)+parseInt($(this).closest("form").css("padding-right"),10);var a=parseInt($(this).css("padding-left"),10)+parseInt($(this).css("padding-right"),10);$(this).css("width",d-c-a)})};$("form.formtastic li.string input, form.formtastic textarea").stretchFormtasticInputWidthToParent();$("ul.downplayed li div.content p").vAlign();$("form.sandbox").submit(function(){var a=true;$(this).find("input.required").each(function(){$(this).removeClass("error");if($(this).val()==""){$(this).addClass("error");$(this).wiggle();a=false}});return a})});function clippyCopiedCallback(b){$("#api_key_copied").fadeIn().delay(1000).fadeOut()}log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){console.log(Array.prototype.slice.call(arguments)[0])}};if(Function.prototype.bind&&console&&typeof console.log=="object"){["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(a){console[a]=this.bind(console[a],console)},Function.prototype.call)}var Docs={shebang:function(){var b=$.param.fragment().split("/");b.shift();switch(b.length){case 1:var d="resource_"+b[0];Docs.expandEndpointListForResource(b[0]);$("#"+d).slideto({highlight:false});break;case 2:Docs.expandEndpointListForResource(b[0]);$("#"+d).slideto({highlight:false});var c=b.join("_");var a=c+"_content";Docs.expandOperation($("#"+a));$("#"+c).slideto({highlight:false});break}},toggleEndpointListForResource:function(b){var a=$("li#resource_"+Docs.escapeResourceName(b)+" ul.endpoints");if(a.is(":visible")){Docs.collapseEndpointListForResource(b)}else{Docs.expandEndpointListForResource(b)}},expandEndpointListForResource:function(b){var b=Docs.escapeResourceName(b);if(b==""){$(".resource ul.endpoints").slideDown();return}$("li#resource_"+b).addClass("active");var a=$("li#resource_"+b+" ul.endpoints");a.slideDown()},collapseEndpointListForResource:function(b){var b=Docs.escapeResourceName(b);$("li#resource_"+b).removeClass("active");var a=$("li#resource_"+b+" ul.endpoints");a.slideUp()},expandOperationsForResource:function(a){Docs.expandEndpointListForResource(a);if(a==""){$(".resource ul.endpoints li.operation div.content").slideDown();return}$("li#resource_"+Docs.escapeResourceName(a)+" li.operation div.content").each(function(){Docs.expandOperation($(this))})},collapseOperationsForResource:function(a){Docs.expandEndpointListForResource(a);$("li#resource_"+Docs.escapeResourceName(a)+" li.operation div.content").each(function(){Docs.collapseOperation($(this))})},escapeResourceName:function(a){return a.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^` + "`" + `{|}~]/g,"\\$&")},expandOperation:function(a){a.slideDown()},collapseOperation:function(a){a.slideUp()}};(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.apikey_button_view=b(function(e,k,d,j,i){this.compilerInfo=[4,">= 1.0.0"];d=this.merge(d,e.helpers);i=i||{};var g="",c,f="function",h=this.escapeExpression;g+=" \n
")+"
";if(C=s.description){C=C.call(E,{hash:{},data:D})}else{C=E.description;C=typeof C===e?C.apply(E):C}if(C||C===0){B+=C}B+="
\n ";return B}function m(C,B){return'\n\n
Parameter | \nValue | \nDescription | \nParameter Type | \nData Type | \n
---|
HTTP Status Code | \nReason | \nResponse Model | \n
---|
';if(c=d.sampleJSON){c=c.call(k,{hash:{},data:i})}else{c=k.sampleJSON;c=typeof c===f?c.apply(k):c}g+=h(c)+'
\n \n
").text(Q);I=$('').append(G)}else{if(P==="application/xml"||/\+xml$/.test(P)){G=$("
").text(this.formatXml(N));I=$('').append(G)}else{if(P==="text/html"){G=$("
").html(_.escape(N));I=$('').append(G)}else{if(/^image\//.test(P)){I=$("
").text(N);I=$('').append(G)}}}}}L=I;$(".request_url",$(this.el)).html("");$(".request_url pre",$(this.el)).text(F);$(".response_code",$(this.el)).html(""+J.status+"");$(".response_body",$(this.el)).html(L);$(".response_headers",$(this.el)).html("
"+_.escape(JSON.stringify(J.headers,null," ")).replace(/\n/g,"");$(".response",$(this.el)).slideDown();$(".response_hider",$(this.el)).show();$(".response_throbber",$(this.el)).hide();K=$(".response_body",$(this.el))[0];E=this.options.swaggerOptions;if(E.highlightSizeThreshold&&J.data.length>E.highlightSizeThreshold){return K}else{return hljs.highlightBlock(K)}};C.prototype.toggleOperationContent=function(){var E;E=$("#"+Docs.escapeResourceName(this.model.parentId+"_"+this.model.nickname+"_content"));if(E.is(":visible")){return Docs.collapseOperation(E)}else{return Docs.expandOperation(E)}};return C})(Backbone.View);r=(function(D){y(C,D);function C(){e=C.__super__.constructor.apply(this,arguments);return e}C.prototype.initialize=function(){};C.prototype.render=function(){var F,E,G;G=this.template();$(this.el).html(G(this.model));if(swaggerUi.api.models.hasOwnProperty(this.model.responseModel)){F={sampleJSON:JSON.stringify(swaggerUi.api.models[this.model.responseModel].createJSONSample(),null,2),isParam:false,signature:swaggerUi.api.models[this.model.responseModel].getMockSignature()};E=new j({model:F,tagName:"div"});$(".model-signature",this.$el).append(E.render().el)}else{$(".model-signature",this.$el).html("")}return this};C.prototype.template=function(){return Handlebars.templates.status_code};return C})(Backbone.View);m=(function(D){y(C,D);function C(){c=C.__super__.constructor.apply(this,arguments);return c}C.prototype.initialize=function(){return Handlebars.registerHelper("isArray",function(F,E){if(F.type.toLowerCase()==="array"||F.allowMultiple){return E.fn(this)}else{return E.inverse(this)}})};C.prototype.render=function(){var E,F,I,G,J,H,M,N,L,K;K=this.model.type||this.model.dataType;if(typeof K==="undefined"){H=this.model.schema;if(H&&H["$ref"]){G=H["$ref"];if(G.indexOf("#/definitions/")===0){K=G.substring("#/definitions/".length)}else{K=G}}}this.model.type=K;this.model.paramType=this.model["in"]||this.model.paramType;if(this.model.paramType==="body"){this.model.isBody=true}if(K&&K.toLowerCase()==="file"){this.model.isFile=true}this.model["default"]=this.model["default"]||this.model.defaultValue;if(this.model.allowableValues){this.model.isList=true}L=this.template();$(this.el).html(L(this.model));M={sampleJSON:this.model.sampleJSON,isParam:true,signature:this.model.signature};if(this.model.sampleJSON){N=new j({model:M,tagName:"div"});$(".model-signature",$(this.el)).append(N.render().el)}else{$(".model-signature",$(this.el)).html(this.model.signature)}F=false;if(this.model.isBody){F=true}E={isParam:F};E.consumes=this.model.consumes;if(F){I=new n({model:E});$(".parameter-content-type",$(this.el)).append(I.render().el)}else{J=new o({model:E});$(".response-content-type",$(this.el)).append(J.render().el)}return this};C.prototype.template=function(){if(this.model.isList){return Handlebars.templates.param_list}else{if(this.options.readOnly){if(this.model.required){return Handlebars.templates.param_readonly_required}else{return Handlebars.templates.param_readonly}}else{if(this.model.required){return Handlebars.templates.param_required}else{return Handlebars.templates.param}}}};return C})(Backbone.View);j=(function(D){y(C,D);function C(){a=C.__super__.constructor.apply(this,arguments);return a}C.prototype.events={"click a.description-link":"switchToDescription","click a.snippet-link":"switchToSnippet","mousedown .snippet":"snippetToTextArea"};C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));this.switchToSnippet();this.isParam=this.model.isParam;if(this.isParam){$(".notice",$(this.el)).text("Click to set as parameter value")}return this};C.prototype.template=function(){return Handlebars.templates.signature};C.prototype.switchToDescription=function(E){if(E!=null){E.preventDefault()}$(".snippet",$(this.el)).hide();$(".description",$(this.el)).show();$(".description-link",$(this.el)).addClass("selected");return $(".snippet-link",$(this.el)).removeClass("selected")};C.prototype.switchToSnippet=function(E){if(E!=null){E.preventDefault()}$(".description",$(this.el)).hide();$(".snippet",$(this.el)).show();$(".snippet-link",$(this.el)).addClass("selected");return $(".description-link",$(this.el)).removeClass("selected")};C.prototype.snippetToTextArea=function(E){var F;if(this.isParam){if(E!=null){E.preventDefault()}F=$("textarea",$(this.el.parentNode.parentNode.parentNode));if($.trim(F.val())===""){return F.val(this.model.sampleJSON)}}};return C})(Backbone.View);l=(function(C){y(D,C);function D(){A=D.__super__.constructor.apply(this,arguments);return A}D.prototype.initialize=function(){};D.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));$("label[for=contentType]",$(this.el)).text("Response Content Type");return this};D.prototype.template=function(){return Handlebars.templates.content_type};return D})(Backbone.View);o=(function(C){y(D,C);function D(){z=D.__super__.constructor.apply(this,arguments);return z}D.prototype.initialize=function(){};D.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));$("label[for=responseContentType]",$(this.el)).text("Response Content Type");return this};D.prototype.template=function(){return Handlebars.templates.response_content_type};return D})(Backbone.View);n=(function(D){y(C,D);function C(){d=C.__super__.constructor.apply(this,arguments);return d}C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));$("label[for=parameterContentType]",$(this.el)).text("Parameter content type:");return this};C.prototype.template=function(){return Handlebars.templates.parameter_content_type};return C})(Backbone.View);t=(function(D){y(C,D);function C(){b=C.__super__.constructor.apply(this,arguments);return b}C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));return this};C.prototype.events={"click #apikey_button":"toggleApiKeyContainer","click #apply_api_key":"applyApiKey"};C.prototype.applyApiKey=function(){var E;window.authorizations.add(this.model.name,new ApiKeyAuthorization(this.model.name,$("#input_apiKey_entry").val(),this.model["in"]));window.swaggerUi.load();return E=$("#apikey_container").show()};C.prototype.toggleApiKeyContainer=function(){var E;if($("#apikey_container").length>0){E=$("#apikey_container").first();if(E.is(":visible")){return E.hide()}else{$(".auth_container").hide();return E.show()}}};C.prototype.template=function(){return Handlebars.templates.apikey_button_view};return C})(Backbone.View);k=(function(D){y(C,D);function C(){B=C.__super__.constructor.apply(this,arguments);return B}C.prototype.initialize=function(){};C.prototype.render=function(){var E;E=this.template();$(this.el).html(E(this.model));return this};C.prototype.events={"click #basic_auth_button":"togglePasswordContainer","click #apply_basic_auth":"applyPassword"};C.prototype.applyPassword=function(){var F,E,G;console.log("applying password");G=$(".input_username").val();E=$(".input_password").val();window.authorizations.add(this.model.type,new PasswordAuthorization("basic",G,E));window.swaggerUi.load();return F=$("#basic_auth_container").hide()};C.prototype.togglePasswordContainer=function(){var E;if($("#basic_auth_container").length>0){E=$("#basic_auth_container").show();if(E.is(":visible")){return E.slideUp()}else{$(".auth_container").hide();return E.show()}}};C.prototype.template=function(){return Handlebars.templates.basic_auth_button_view};return C})(Backbone.View)}).call(this);`) -func www_swagger_ui_swagger_ui_min_js_bytes() ([]byte, error) { - return _www_swagger_ui_swagger_ui_min_js, nil +func third_party_swagger_ui_swagger_ui_min_js_bytes() ([]byte, error) { + return _third_party_swagger_ui_swagger_ui_min_js, nil } -func www_swagger_ui_swagger_ui_min_js() (*asset, error) { - bytes, err := www_swagger_ui_swagger_ui_min_js_bytes() +func third_party_swagger_ui_swagger_ui_min_js() (*asset, error) { + bytes, err := third_party_swagger_ui_swagger_ui_min_js_bytes() if err != nil { return nil, err } - info := bindata_file_info{name: "www/swagger-ui/swagger-ui.min.js", size: 58357, mode: os.FileMode(416), modTime: time.Unix(1419029016, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -var _www_titlelogo_svg = []byte(` - - -`) - -func www_titlelogo_svg_bytes() ([]byte, error) { - return _www_titlelogo_svg, nil -} - -func www_titlelogo_svg() (*asset, error) { - bytes, err := www_titlelogo_svg_bytes() - if err != nil { - return nil, err - } - - info := bindata_file_info{name: "www/titlelogo.svg", size: 50107, mode: os.FileMode(416), modTime: time.Unix(1418933599, 0)} + info := bindata_file_info{name: "third_party/swagger-ui/swagger-ui.min.js", size: 58357, mode: os.FileMode(416), modTime: time.Unix(1420491569, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -14869,38 +14869,38 @@ func AssetNames() []string { // _bindata is a table, holding each asset generator, mapped to its name. var _bindata = map[string]func() (*asset, error){ - "www/box.ng": www_box_ng, - "www/index.html": www_index_html, - "www/k8s-style.css": www_k8s_style_css, - "www/logotext.svg": www_logotext_svg, - "www/partials/groups.html": www_partials_groups_html, - "www/partials/pod.html": www_partials_pod_html, - "www/podcontroller.js": www_podcontroller_js, - "www/swagger-ui/css/reset.css": www_swagger_ui_css_reset_css, - "www/swagger-ui/css/screen.css": www_swagger_ui_css_screen_css, - "www/swagger-ui/images/explorer_icons.png": www_swagger_ui_images_explorer_icons_png, - "www/swagger-ui/images/logo_small.png": www_swagger_ui_images_logo_small_png, - "www/swagger-ui/images/pet_store_api.png": www_swagger_ui_images_pet_store_api_png, - "www/swagger-ui/images/throbber.gif": www_swagger_ui_images_throbber_gif, - "www/swagger-ui/images/wordnik_api.png": www_swagger_ui_images_wordnik_api_png, - "www/swagger-ui/index.html": www_swagger_ui_index_html, - "www/swagger-ui/lib/backbone-min.js": www_swagger_ui_lib_backbone_min_js, - "www/swagger-ui/lib/handlebars-1.0.0.js": www_swagger_ui_lib_handlebars_1_0_0_js, - "www/swagger-ui/lib/highlight.7.3.pack.js": www_swagger_ui_lib_highlight_7_3_pack_js, - "www/swagger-ui/lib/jquery-1.8.0.min.js": www_swagger_ui_lib_jquery_1_8_0_min_js, - "www/swagger-ui/lib/jquery.ba-bbq.min.js": www_swagger_ui_lib_jquery_ba_bbq_min_js, - "www/swagger-ui/lib/jquery.slideto.min.js": www_swagger_ui_lib_jquery_slideto_min_js, - "www/swagger-ui/lib/jquery.wiggle.min.js": www_swagger_ui_lib_jquery_wiggle_min_js, - "www/swagger-ui/lib/shred/content.js": www_swagger_ui_lib_shred_content_js, - "www/swagger-ui/lib/shred.bundle.js": www_swagger_ui_lib_shred_bundle_js, - "www/swagger-ui/lib/swagger-client.js": www_swagger_ui_lib_swagger_client_js, - "www/swagger-ui/lib/swagger-oauth.js": www_swagger_ui_lib_swagger_oauth_js, - "www/swagger-ui/lib/swagger.js": www_swagger_ui_lib_swagger_js, - "www/swagger-ui/lib/underscore-min.js": www_swagger_ui_lib_underscore_min_js, - "www/swagger-ui/o2c.html": www_swagger_ui_o2c_html, - "www/swagger-ui/swagger-ui.js": www_swagger_ui_swagger_ui_js, - "www/swagger-ui/swagger-ui.min.js": www_swagger_ui_swagger_ui_min_js, - "www/titlelogo.svg": www_titlelogo_svg, + "www/box.ng": www_box_ng, + "www/index.html": www_index_html, + "www/k8s-style.css": www_k8s_style_css, + "www/logotext.svg": www_logotext_svg, + "www/partials/groups.html": www_partials_groups_html, + "www/partials/pod.html": www_partials_pod_html, + "www/podcontroller.js": www_podcontroller_js, + "www/titlelogo.svg": www_titlelogo_svg, + "third_party/swagger-ui/css/reset.css": third_party_swagger_ui_css_reset_css, + "third_party/swagger-ui/css/screen.css": third_party_swagger_ui_css_screen_css, + "third_party/swagger-ui/images/explorer_icons.png": third_party_swagger_ui_images_explorer_icons_png, + "third_party/swagger-ui/images/logo_small.png": third_party_swagger_ui_images_logo_small_png, + "third_party/swagger-ui/images/pet_store_api.png": third_party_swagger_ui_images_pet_store_api_png, + "third_party/swagger-ui/images/throbber.gif": third_party_swagger_ui_images_throbber_gif, + "third_party/swagger-ui/images/wordnik_api.png": third_party_swagger_ui_images_wordnik_api_png, + "third_party/swagger-ui/index.html": third_party_swagger_ui_index_html, + "third_party/swagger-ui/lib/backbone-min.js": third_party_swagger_ui_lib_backbone_min_js, + "third_party/swagger-ui/lib/handlebars-1.0.0.js": third_party_swagger_ui_lib_handlebars_1_0_0_js, + "third_party/swagger-ui/lib/highlight.7.3.pack.js": third_party_swagger_ui_lib_highlight_7_3_pack_js, + "third_party/swagger-ui/lib/jquery-1.8.0.min.js": third_party_swagger_ui_lib_jquery_1_8_0_min_js, + "third_party/swagger-ui/lib/jquery.ba-bbq.min.js": third_party_swagger_ui_lib_jquery_ba_bbq_min_js, + "third_party/swagger-ui/lib/jquery.slideto.min.js": third_party_swagger_ui_lib_jquery_slideto_min_js, + "third_party/swagger-ui/lib/jquery.wiggle.min.js": third_party_swagger_ui_lib_jquery_wiggle_min_js, + "third_party/swagger-ui/lib/shred/content.js": third_party_swagger_ui_lib_shred_content_js, + "third_party/swagger-ui/lib/shred.bundle.js": third_party_swagger_ui_lib_shred_bundle_js, + "third_party/swagger-ui/lib/swagger-client.js": third_party_swagger_ui_lib_swagger_client_js, + "third_party/swagger-ui/lib/swagger-oauth.js": third_party_swagger_ui_lib_swagger_oauth_js, + "third_party/swagger-ui/lib/swagger.js": third_party_swagger_ui_lib_swagger_js, + "third_party/swagger-ui/lib/underscore-min.js": third_party_swagger_ui_lib_underscore_min_js, + "third_party/swagger-ui/o2c.html": third_party_swagger_ui_o2c_html, + "third_party/swagger-ui/swagger-ui.js": third_party_swagger_ui_swagger_ui_js, + "third_party/swagger-ui/swagger-ui.min.js": third_party_swagger_ui_swagger_ui_min_js, } // AssetDir returns the file names below a certain @@ -14944,6 +14944,42 @@ type _bintree_t struct { } var _bintree = &_bintree_t{nil, map[string]*_bintree_t{ + "third_party": {nil, map[string]*_bintree_t{ + "swagger-ui": {nil, map[string]*_bintree_t{ + "css": {nil, map[string]*_bintree_t{ + "reset.css": {third_party_swagger_ui_css_reset_css, map[string]*_bintree_t{}}, + "screen.css": {third_party_swagger_ui_css_screen_css, map[string]*_bintree_t{}}, + }}, + "images": {nil, map[string]*_bintree_t{ + "explorer_icons.png": {third_party_swagger_ui_images_explorer_icons_png, map[string]*_bintree_t{}}, + "logo_small.png": {third_party_swagger_ui_images_logo_small_png, map[string]*_bintree_t{}}, + "pet_store_api.png": {third_party_swagger_ui_images_pet_store_api_png, map[string]*_bintree_t{}}, + "throbber.gif": {third_party_swagger_ui_images_throbber_gif, map[string]*_bintree_t{}}, + "wordnik_api.png": {third_party_swagger_ui_images_wordnik_api_png, map[string]*_bintree_t{}}, + }}, + "index.html": {third_party_swagger_ui_index_html, map[string]*_bintree_t{}}, + "lib": {nil, map[string]*_bintree_t{ + "backbone-min.js": {third_party_swagger_ui_lib_backbone_min_js, map[string]*_bintree_t{}}, + "handlebars-1.0.0.js": {third_party_swagger_ui_lib_handlebars_1_0_0_js, map[string]*_bintree_t{}}, + "highlight.7.3.pack.js": {third_party_swagger_ui_lib_highlight_7_3_pack_js, map[string]*_bintree_t{}}, + "jquery-1.8.0.min.js": {third_party_swagger_ui_lib_jquery_1_8_0_min_js, map[string]*_bintree_t{}}, + "jquery.ba-bbq.min.js": {third_party_swagger_ui_lib_jquery_ba_bbq_min_js, map[string]*_bintree_t{}}, + "jquery.slideto.min.js": {third_party_swagger_ui_lib_jquery_slideto_min_js, map[string]*_bintree_t{}}, + "jquery.wiggle.min.js": {third_party_swagger_ui_lib_jquery_wiggle_min_js, map[string]*_bintree_t{}}, + "shred": {nil, map[string]*_bintree_t{ + "content.js": {third_party_swagger_ui_lib_shred_content_js, map[string]*_bintree_t{}}, + }}, + "shred.bundle.js": {third_party_swagger_ui_lib_shred_bundle_js, map[string]*_bintree_t{}}, + "swagger-client.js": {third_party_swagger_ui_lib_swagger_client_js, map[string]*_bintree_t{}}, + "swagger-oauth.js": {third_party_swagger_ui_lib_swagger_oauth_js, map[string]*_bintree_t{}}, + "swagger.js": {third_party_swagger_ui_lib_swagger_js, map[string]*_bintree_t{}}, + "underscore-min.js": {third_party_swagger_ui_lib_underscore_min_js, map[string]*_bintree_t{}}, + }}, + "o2c.html": {third_party_swagger_ui_o2c_html, map[string]*_bintree_t{}}, + "swagger-ui.js": {third_party_swagger_ui_swagger_ui_js, map[string]*_bintree_t{}}, + "swagger-ui.min.js": {third_party_swagger_ui_swagger_ui_min_js, map[string]*_bintree_t{}}, + }}, + }}, "www": {nil, map[string]*_bintree_t{ "box.ng": {www_box_ng, map[string]*_bintree_t{}}, "index.html": {www_index_html, map[string]*_bintree_t{}}, @@ -14954,41 +14990,7 @@ var _bintree = &_bintree_t{nil, map[string]*_bintree_t{ "pod.html": {www_partials_pod_html, map[string]*_bintree_t{}}, }}, "podcontroller.js": {www_podcontroller_js, map[string]*_bintree_t{}}, - "swagger-ui": {nil, map[string]*_bintree_t{ - "css": {nil, map[string]*_bintree_t{ - "reset.css": {www_swagger_ui_css_reset_css, map[string]*_bintree_t{}}, - "screen.css": {www_swagger_ui_css_screen_css, map[string]*_bintree_t{}}, - }}, - "images": {nil, map[string]*_bintree_t{ - "explorer_icons.png": {www_swagger_ui_images_explorer_icons_png, map[string]*_bintree_t{}}, - "logo_small.png": {www_swagger_ui_images_logo_small_png, map[string]*_bintree_t{}}, - "pet_store_api.png": {www_swagger_ui_images_pet_store_api_png, map[string]*_bintree_t{}}, - "throbber.gif": {www_swagger_ui_images_throbber_gif, map[string]*_bintree_t{}}, - "wordnik_api.png": {www_swagger_ui_images_wordnik_api_png, map[string]*_bintree_t{}}, - }}, - "index.html": {www_swagger_ui_index_html, map[string]*_bintree_t{}}, - "lib": {nil, map[string]*_bintree_t{ - "backbone-min.js": {www_swagger_ui_lib_backbone_min_js, map[string]*_bintree_t{}}, - "handlebars-1.0.0.js": {www_swagger_ui_lib_handlebars_1_0_0_js, map[string]*_bintree_t{}}, - "highlight.7.3.pack.js": {www_swagger_ui_lib_highlight_7_3_pack_js, map[string]*_bintree_t{}}, - "jquery-1.8.0.min.js": {www_swagger_ui_lib_jquery_1_8_0_min_js, map[string]*_bintree_t{}}, - "jquery.ba-bbq.min.js": {www_swagger_ui_lib_jquery_ba_bbq_min_js, map[string]*_bintree_t{}}, - "jquery.slideto.min.js": {www_swagger_ui_lib_jquery_slideto_min_js, map[string]*_bintree_t{}}, - "jquery.wiggle.min.js": {www_swagger_ui_lib_jquery_wiggle_min_js, map[string]*_bintree_t{}}, - "shred": {nil, map[string]*_bintree_t{ - "content.js": {www_swagger_ui_lib_shred_content_js, map[string]*_bintree_t{}}, - }}, - "shred.bundle.js": {www_swagger_ui_lib_shred_bundle_js, map[string]*_bintree_t{}}, - "swagger-client.js": {www_swagger_ui_lib_swagger_client_js, map[string]*_bintree_t{}}, - "swagger-oauth.js": {www_swagger_ui_lib_swagger_oauth_js, map[string]*_bintree_t{}}, - "swagger.js": {www_swagger_ui_lib_swagger_js, map[string]*_bintree_t{}}, - "underscore-min.js": {www_swagger_ui_lib_underscore_min_js, map[string]*_bintree_t{}}, - }}, - "o2c.html": {www_swagger_ui_o2c_html, map[string]*_bintree_t{}}, - "swagger-ui.js": {www_swagger_ui_swagger_ui_js, map[string]*_bintree_t{}}, - "swagger-ui.min.js": {www_swagger_ui_swagger_ui_min_js, map[string]*_bintree_t{}}, - }}, - "titlelogo.svg": {www_titlelogo_svg, map[string]*_bintree_t{}}, + "titlelogo.svg": {www_titlelogo_svg, map[string]*_bintree_t{}}, }}, }} diff --git a/pkg/ui/www.go b/pkg/ui/installsupport.go similarity index 74% rename from pkg/ui/www.go rename to pkg/ui/installsupport.go index 538c280567..639efd03dd 100644 --- a/pkg/ui/www.go +++ b/pkg/ui/installsupport.go @@ -22,13 +22,18 @@ import ( assetfs "github.com/elazarl/go-bindata-assetfs" ) -const prefix = "/static/" - type MuxInterface interface { Handle(pattern string, handler http.Handler) } func InstallSupport(mux MuxInterface) { + // Expose files in www/ on
")+"