insta_swag 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +3 -0
  3. data/Gemfile +14 -0
  4. data/Gemfile.lock +134 -0
  5. data/LICENSE.txt +2 -0
  6. data/README.md +45 -0
  7. data/Rakefile +10 -0
  8. data/fixtures/public/docs/css/hightlight.default.css +135 -0
  9. data/fixtures/public/docs/css/screen.css +1759 -0
  10. data/fixtures/public/docs/images/logo_small.png +0 -0
  11. data/fixtures/public/docs/images/pet_store_api.png +0 -0
  12. data/fixtures/public/docs/images/throbber.gif +0 -0
  13. data/fixtures/public/docs/images/wordnik_api.png +0 -0
  14. data/fixtures/public/docs/index.html +84 -0
  15. data/fixtures/public/docs/lib/backbone-min.js +38 -0
  16. data/fixtures/public/docs/lib/handlebars-1.0.rc.1.js +1920 -0
  17. data/fixtures/public/docs/lib/highlight.7.3.pack.js +1 -0
  18. data/fixtures/public/docs/lib/jquery-1.8.0.min.js +2 -0
  19. data/fixtures/public/docs/lib/jquery.ba-bbq.min.js +18 -0
  20. data/fixtures/public/docs/lib/jquery.slideto.min.js +1 -0
  21. data/fixtures/public/docs/lib/jquery.wiggle.min.js +8 -0
  22. data/fixtures/public/docs/lib/swagger.js +772 -0
  23. data/fixtures/public/docs/lib/underscore-min.js +32 -0
  24. data/fixtures/public/docs/swagger-ui.js +2020 -0
  25. data/fixtures/public/docs/swagger-ui.min.js +1 -0
  26. data/insta_swag-0.1.0.gem +0 -0
  27. data/insta_swag.gemspec +25 -0
  28. data/lib/insta_swag.rb +25 -0
  29. data/lib/insta_swag/assets_app.rb +6 -0
  30. data/lib/insta_swag/documentation_app.rb +29 -0
  31. data/lib/insta_swag/documentation_factory.rb +28 -0
  32. data/lib/insta_swag/settings.rb +54 -0
  33. data/lib/insta_swag/static_files.rb +39 -0
  34. data/lib/insta_swag/version.rb +3 -0
  35. data/mounted-swagger.png +0 -0
  36. data/public/docs/css/hightlight.default.css +135 -0
  37. data/public/docs/css/screen.css +1759 -0
  38. data/public/docs/images/logo_small.png +0 -0
  39. data/public/docs/images/pet_store_api.png +0 -0
  40. data/public/docs/images/throbber.gif +0 -0
  41. data/public/docs/images/wordnik_api.png +0 -0
  42. data/public/docs/index.html +87 -0
  43. data/public/docs/lib/backbone-min.js +38 -0
  44. data/public/docs/lib/handlebars-1.0.rc.1.js +1920 -0
  45. data/public/docs/lib/highlight.7.3.pack.js +1 -0
  46. data/public/docs/lib/jquery-1.8.0.min.js +2 -0
  47. data/public/docs/lib/jquery.ba-bbq.min.js +18 -0
  48. data/public/docs/lib/jquery.slideto.min.js +1 -0
  49. data/public/docs/lib/jquery.wiggle.min.js +8 -0
  50. data/public/docs/lib/swagger.js +772 -0
  51. data/public/docs/lib/underscore-min.js +32 -0
  52. data/public/docs/swagger-ui.js +2020 -0
  53. data/public/docs/swagger-ui.min.js +1 -0
  54. data/spec/insta_swag/static_files_spec.rb +34 -0
  55. data/spec/insta_swag_spec.rb +26 -0
  56. data/spec/integration_spec.rb +204 -0
  57. data/spec/spec_helper.rb +17 -0
  58. data/spec/support/dummy_api.rb +29 -0
  59. data/spec/support/file_helper.rb +17 -0
  60. metadata +140 -0
@@ -0,0 +1 @@
1
+ $(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()}function log(){if(window.console){console.log.apply(console,arguments)}}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.content_type=b(function(g,p,f,n,m){f=f||g.helpers;var l="",c,s,k,j,q=this,h="function",o=f.helperMissing,i=void 0;function e(x,w){var t="",v,u;t+="\n ";k=f.produces;v=k||x.produces;u=f.each;j=q.program(2,d,w);j.hash={};j.fn=j;j.inverse=q.noop;v=u.call(x,v,j);if(v||v===0){t+=v}t+="\n";return t}function d(w,v){var t="",u;t+='\n <option value="';u=w;if(typeof u===h){u=u.call(w,{hash:{}})}else{if(u===i){u=o.call(w,"this",{hash:{}})}}if(u||u===0){t+=u}t+='">';u=w;if(typeof u===h){u=u.call(w,{hash:{}})}else{if(u===i){u=o.call(w,"this",{hash:{}})}}if(u||u===0){t+=u}t+="</option>\n ";return t}function r(u,t){return'\n <option value="application/json">application/json</option>\n'}l+='<label for="contentType"></label>\n<select name="contentType">\n';k=f.produces;c=k||p.produces;s=f["if"];j=q.program(1,e,m);j.hash={};j.fn=j;j.inverse=q.program(4,r,m);c=s.call(p,c,j);if(c||c===0){l+=c}l+="\n</select>\n";return l})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.main=b(function(f,p,e,n,m){e=e||f.helpers;var k="",c,r,j,i,q=this,g="function",o=e.helperMissing,h=void 0,l=this.escapeExpression;function d(v,u){var s="",t;s+='\n , <span style="font-variant: small-caps">api version</span>: ';j=e.apiVersion;t=j||v.apiVersion;if(typeof t===g){t=t.call(v,{hash:{}})}else{if(t===h){t=o.call(v,"apiVersion",{hash:{}})}}s+=l(t)+"\n ";return s}k+="\n<div class='container' id='resources_container'>\n <ul id='resources'>\n </ul>\n\n <div class=\"footer\">\n <br>\n <br>\n <h4 style=\"color: #999\">[ <span style=\"font-variant: small-caps\">base url</span>: ";j=e.basePath;c=j||p.basePath;if(typeof c===g){c=c.call(p,{hash:{}})}else{if(c===h){c=o.call(p,"basePath",{hash:{}})}}k+=l(c)+"\n ";j=e.apiVersion;c=j||p.apiVersion;r=e["if"];i=q.program(1,d,m);i.hash={};i.fn=i;i.inverse=q.noop;c=r.call(p,c,i);if(c||c===0){k+=c}k+="]</h4>\n </div>\n</div>\n";return k})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.operation=b(function(h,u,s,m,w){s=s||h.helpers;var t="",j,g,i,q,p=this,e="function",r=s.helperMissing,c=void 0,d=this.escapeExpression;function o(A,z){var x="",y;x+="\n <h4>Implementation Notes</h4>\n <p>";i=s.notes;y=i||A.notes;if(typeof y===e){y=y.call(A,{hash:{}})}else{if(y===c){y=r.call(A,"notes",{hash:{}})}}if(y||y===0){x+=y}x+="</p>\n ";return x}function n(y,x){return'\n <h4>Response Class</h4>\n <p><span class="model-signature" /></p>\n <br/>\n <div class="content-type" />\n '}function l(y,x){return'\n <h4>Parameters</h4>\n <table class=\'fullwidth\'>\n <thead>\n <tr>\n <th style="width: 100px; max-width: 100px">Parameter</th>\n <th style="width: 310px; max-width: 310px">Value</th>\n <th style="width: 200px; max-width: 200px">Description</th>\n <th style="width: 100px; max-width: 100px">Parameter Type</th>\n <th style="width: 220px; max-width: 230px">Data Type</th>\n </tr>\n </thead>\n <tbody class="operation-params">\n\n </tbody>\n </table>\n '}function k(y,x){return"\n <div style='margin:0;padding:0;display:inline'></div>\n <h4>Error Status Codes</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th>HTTP Status Code</th>\n <th>Reason</th>\n </tr>\n </thead>\n <tbody class=\"operation-status\">\n \n </tbody>\n </table>\n "}function f(y,x){return"\n "}function v(y,x){return"\n <div class='sandbox_header'>\n <input class='submit' name='commit' type='button' value='Try it out!' />\n <a href='#' class='response_hider' style='display:none'>Hide Response</a>\n <img alt='Throbber' class='response_throbber' src='images/throbber.gif' style='display:none' />\n </div>\n "}t+="\n <ul class='operations' >\n <li class='";i=s.httpMethod;j=i||u.httpMethod;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"httpMethod",{hash:{}})}}t+=d(j)+" operation' id='";i=s.resourceName;j=i||u.resourceName;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"resourceName",{hash:{}})}}t+=d(j)+"_";i=s.nickname;j=i||u.nickname;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"nickname",{hash:{}})}}t+=d(j)+"_";i=s.httpMethod;j=i||u.httpMethod;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"httpMethod",{hash:{}})}}t+=d(j)+"_";i=s.number;j=i||u.number;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"number",{hash:{}})}}t+=d(j)+"'>\n <div class='heading'>\n <h3>\n <span class='http_method'>\n <a href='#!/";i=s.resourceName;j=i||u.resourceName;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"resourceName",{hash:{}})}}t+=d(j)+"/";i=s.nickname;j=i||u.nickname;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"nickname",{hash:{}})}}t+=d(j)+"_";i=s.httpMethod;j=i||u.httpMethod;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"httpMethod",{hash:{}})}}t+=d(j)+"_";i=s.number;j=i||u.number;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"number",{hash:{}})}}t+=d(j)+'\' class="toggleOperation">';i=s.httpMethod;j=i||u.httpMethod;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"httpMethod",{hash:{}})}}t+=d(j)+"</a>\n </span>\n <span class='path'>\n <a href='#!/";i=s.resourceName;j=i||u.resourceName;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"resourceName",{hash:{}})}}t+=d(j)+"/";i=s.nickname;j=i||u.nickname;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"nickname",{hash:{}})}}t+=d(j)+"_";i=s.httpMethod;j=i||u.httpMethod;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"httpMethod",{hash:{}})}}t+=d(j)+"_";i=s.number;j=i||u.number;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"number",{hash:{}})}}t+=d(j)+'\' class="toggleOperation">';i=s.path;j=i||u.path;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"path",{hash:{}})}}t+=d(j)+"</a>\n </span>\n </h3>\n <ul class='options'>\n <li>\n <a href='#!/";i=s.resourceName;j=i||u.resourceName;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"resourceName",{hash:{}})}}t+=d(j)+"/";i=s.nickname;j=i||u.nickname;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"nickname",{hash:{}})}}t+=d(j)+"_";i=s.httpMethod;j=i||u.httpMethod;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"httpMethod",{hash:{}})}}t+=d(j)+"_";i=s.number;j=i||u.number;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"number",{hash:{}})}}t+=d(j)+'\' class="toggleOperation">';i=s.summary;j=i||u.summary;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"summary",{hash:{}})}}if(j||j===0){t+=j}t+="</a>\n </li>\n </ul>\n </div>\n <div class='content' id='";i=s.resourceName;j=i||u.resourceName;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"resourceName",{hash:{}})}}t+=d(j)+"_";i=s.nickname;j=i||u.nickname;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"nickname",{hash:{}})}}t+=d(j)+"_";i=s.httpMethod;j=i||u.httpMethod;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"httpMethod",{hash:{}})}}t+=d(j)+"_";i=s.number;j=i||u.number;if(typeof j===e){j=j.call(u,{hash:{}})}else{if(j===c){j=r.call(u,"number",{hash:{}})}}t+=d(j)+"_content' style='display:none'>\n ";i=s.notes;j=i||u.notes;g=s["if"];q=p.program(1,o,w);q.hash={};q.fn=q;q.inverse=p.noop;j=g.call(u,j,q);if(j||j===0){t+=j}t+="\n ";i=s.responseClass;j=i||u.responseClass;g=s["if"];q=p.program(3,n,w);q.hash={};q.fn=q;q.inverse=p.noop;j=g.call(u,j,q);if(j||j===0){t+=j}t+="\n <form accept-charset='UTF-8' class='sandbox'>\n <div style='margin:0;padding:0;display:inline'></div>\n ";i=s.parameters;j=i||u.parameters;g=s["if"];q=p.program(5,l,w);q.hash={};q.fn=q;q.inverse=p.noop;j=g.call(u,j,q);if(j||j===0){t+=j}t+="\n ";i=s.errorResponses;j=i||u.errorResponses;g=s["if"];q=p.program(7,k,w);q.hash={};q.fn=q;q.inverse=p.noop;j=g.call(u,j,q);if(j||j===0){t+=j}t+="\n ";i=s.isReadOnly;j=i||u.isReadOnly;g=s["if"];q=p.program(9,f,w);q.hash={};q.fn=q;q.inverse=p.program(11,v,w);j=g.call(u,j,q);if(j||j===0){t+=j}t+="\n </form>\n <div class='response' style='display:none'>\n <h4>Request URL</h4>\n <div class='block request_url'></div>\n <h4>Response Body</h4>\n <div class='block response_body'></div>\n <h4>Response Code</h4>\n <div class='block response_code'></div>\n <h4>Response Headers</h4>\n <div class='block response_headers'></div>\n </div>\n </div>\n </li>\n </ul>\n";return t})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param=b(function(h,v,t,m,y){t=t||h.helpers;var u="",j,g,i,r,q=this,e="function",s=t.helperMissing,c=void 0,d=this.escapeExpression;function p(D,C){var z="",B,A;z+="\n ";i=t.isFile;B=i||D.isFile;A=t["if"];r=q.program(2,o,C);r.hash={};r.fn=r;r.inverse=q.program(4,n,C);B=A.call(D,B,r);if(B||B===0){z+=B}z+="\n ";return z}function o(C,B){var z="",A;z+='\n <input type="file" name=\'';i=t.name;A=i||C.name;if(typeof A===e){A=A.call(C,{hash:{}})}else{if(A===c){A=s.call(C,"name",{hash:{}})}}z+=d(A)+"'/>\n ";return z}function n(D,C){var z="",B,A;z+="\n ";i=t.defaultValue;B=i||D.defaultValue;A=t["if"];r=q.program(5,l,C);r.hash={};r.fn=r;r.inverse=q.program(7,k,C);B=A.call(D,B,r);if(B||B===0){z+=B}z+="\n ";return z}function l(C,B){var z="",A;z+="\n <textarea class='body-textarea' name='";i=t.name;A=i||C.name;if(typeof A===e){A=A.call(C,{hash:{}})}else{if(A===c){A=s.call(C,"name",{hash:{}})}}z+=d(A)+"'>";i=t.defaultValue;A=i||C.defaultValue;if(typeof A===e){A=A.call(C,{hash:{}})}else{if(A===c){A=s.call(C,"defaultValue",{hash:{}})}}z+=d(A)+"</textarea>\n ";return z}function k(C,B){var z="",A;z+="\n <textarea class='body-textarea' name='";i=t.name;A=i||C.name;if(typeof A===e){A=A.call(C,{hash:{}})}else{if(A===c){A=s.call(C,"name",{hash:{}})}}z+=d(A)+'\'></textarea>\n <br />\n <div class="content-type" />\n ';return z}function f(D,C){var z="",B,A;z+="\n ";i=t.defaultValue;B=i||D.defaultValue;A=t["if"];r=q.program(10,x,C);r.hash={};r.fn=r;r.inverse=q.program(12,w,C);B=A.call(D,B,r);if(B||B===0){z+=B}z+="\n ";return z}function x(C,B){var z="",A;z+="\n <input class='parameter' minlength='0' name='";i=t.name;A=i||C.name;if(typeof A===e){A=A.call(C,{hash:{}})}else{if(A===c){A=s.call(C,"name",{hash:{}})}}z+=d(A)+"' placeholder='' type='text' value='";i=t.defaultValue;A=i||C.defaultValue;if(typeof A===e){A=A.call(C,{hash:{}})}else{if(A===c){A=s.call(C,"defaultValue",{hash:{}})}}z+=d(A)+"'/>\n ";return z}function w(C,B){var z="",A;z+="\n <input class='parameter' minlength='0' name='";i=t.name;A=i||C.name;if(typeof A===e){A=A.call(C,{hash:{}})}else{if(A===c){A=s.call(C,"name",{hash:{}})}}z+=d(A)+"' placeholder='' type='text' value=''/>\n ";return z}u+="<td class='code'>";i=t.name;j=i||v.name;if(typeof j===e){j=j.call(v,{hash:{}})}else{if(j===c){j=s.call(v,"name",{hash:{}})}}u+=d(j)+"</td>\n<td>\n\n ";i=t.isBody;j=i||v.isBody;g=t["if"];r=q.program(1,p,y);r.hash={};r.fn=r;r.inverse=q.program(9,f,y);j=g.call(v,j,r);if(j||j===0){u+=j}u+="\n\n</td>\n<td>";i=t.description;j=i||v.description;if(typeof j===e){j=j.call(v,{hash:{}})}else{if(j===c){j=s.call(v,"description",{hash:{}})}}if(j||j===0){u+=j}u+="</td>\n<td>";i=t.paramType;j=i||v.paramType;if(typeof j===e){j=j.call(v,{hash:{}})}else{if(j===c){j=s.call(v,"paramType",{hash:{}})}}if(j||j===0){u+=j}u+='</td>\n<td>\n <span class="model-signature"></span>\n</td>\n\n';return u})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_list=b(function(h,v,t,m,x){t=t||h.helpers;var u="",k,g,j,r,q=this,e="function",s=t.helperMissing,c=void 0,d=this.escapeExpression;function p(z,y){return"\n "}function o(C,B){var y="",A,z;y+="\n ";j=t.defaultValue;A=j||C.defaultValue;z=t["if"];r=q.program(4,n,B);r.hash={};r.fn=r;r.inverse=q.program(6,l,B);A=z.call(C,A,r);if(A||A===0){y+=A}y+="\n ";return y}function n(z,y){return"\n "}function l(z,y){return"\n <option selected=\"\" value=''></option>\n "}function i(C,B){var y="",A,z;y+="\n ";j=t.isDefault;A=j||C.isDefault;z=t["if"];r=q.program(9,f,B);r.hash={};r.fn=r;r.inverse=q.program(11,w,B);A=z.call(C,A,r);if(A||A===0){y+=A}y+="\n ";return y}function f(B,A){var y="",z;y+="\n <option value='";j=t.value;z=j||B.value;if(typeof z===e){z=z.call(B,{hash:{}})}else{if(z===c){z=s.call(B,"value",{hash:{}})}}y+=d(z)+"'>";j=t.value;z=j||B.value;if(typeof z===e){z=z.call(B,{hash:{}})}else{if(z===c){z=s.call(B,"value",{hash:{}})}}y+=d(z)+" (default)</option>\n ";return y}function w(B,A){var y="",z;y+="\n <option value='";j=t.value;z=j||B.value;if(typeof z===e){z=z.call(B,{hash:{}})}else{if(z===c){z=s.call(B,"value",{hash:{}})}}y+=d(z)+"'>";j=t.value;z=j||B.value;if(typeof z===e){z=z.call(B,{hash:{}})}else{if(z===c){z=s.call(B,"value",{hash:{}})}}y+=d(z)+"</option>\n ";return y}u+="<td class='code'>";j=t.name;k=j||v.name;if(typeof k===e){k=k.call(v,{hash:{}})}else{if(k===c){k=s.call(v,"name",{hash:{}})}}u+=d(k)+"</td>\n<td>\n <select class='parameter' name='";j=t.name;k=j||v.name;if(typeof k===e){k=k.call(v,{hash:{}})}else{if(k===c){k=s.call(v,"name",{hash:{}})}}u+=d(k)+"'>\n ";j=t.required;k=j||v.required;g=t["if"];r=q.program(1,p,x);r.hash={};r.fn=r;r.inverse=q.program(3,o,x);k=g.call(v,k,r);if(k||k===0){u+=k}u+="\n ";j=t.allowableValues;k=j||v.allowableValues;k=(k===null||k===undefined||k===false?k:k.descriptiveValues);g=t.each;r=q.program(8,i,x);r.hash={};r.fn=r;r.inverse=q.noop;k=g.call(v,k,r);if(k||k===0){u+=k}u+="\n </select>\n</td>\n<td>";j=t.description;k=j||v.description;if(typeof k===e){k=k.call(v,{hash:{}})}else{if(k===c){k=s.call(v,"description",{hash:{}})}}if(k||k===0){u+=k}u+="</td>\n<td>";j=t.paramType;k=j||v.paramType;if(typeof k===e){k=k.call(v,{hash:{}})}else{if(k===c){k=s.call(v,"paramType",{hash:{}})}}if(k||k===0){u+=k}u+='</td>\n<td><span class="model-signature"></span></td>\n';return u})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_readonly=b(function(g,t,r,k,u){r=r||g.helpers;var s="",i,f,h,p,o=this,e="function",q=r.helperMissing,c=void 0,d=this.escapeExpression;function n(y,x){var v="",w;v+="\n <textarea class='body-textarea' readonly='readonly' name='";h=r.name;w=h||y.name;if(typeof w===e){w=w.call(y,{hash:{}})}else{if(w===c){w=q.call(y,"name",{hash:{}})}}v+=d(w)+"'>";h=r.defaultValue;w=h||y.defaultValue;if(typeof w===e){w=w.call(y,{hash:{}})}else{if(w===c){w=q.call(y,"defaultValue",{hash:{}})}}v+=d(w)+"</textarea>\n ";return v}function m(z,y){var v="",x,w;v+="\n ";h=r.defaultValue;x=h||z.defaultValue;w=r["if"];p=o.program(4,l,y);p.hash={};p.fn=p;p.inverse=o.program(6,j,y);x=w.call(z,x,p);if(x||x===0){v+=x}v+="\n ";return v}function l(y,x){var v="",w;v+="\n ";h=r.defaultValue;w=h||y.defaultValue;if(typeof w===e){w=w.call(y,{hash:{}})}else{if(w===c){w=q.call(y,"defaultValue",{hash:{}})}}v+=d(w)+"\n ";return v}function j(w,v){return"\n (empty)\n "}s+="<td class='code'>";h=r.name;i=h||t.name;if(typeof i===e){i=i.call(t,{hash:{}})}else{if(i===c){i=q.call(t,"name",{hash:{}})}}s+=d(i)+"</td>\n<td>\n ";h=r.isBody;i=h||t.isBody;f=r["if"];p=o.program(1,n,u);p.hash={};p.fn=p;p.inverse=o.program(3,m,u);i=f.call(t,i,p);if(i||i===0){s+=i}s+="\n</td>\n<td>";h=r.description;i=h||t.description;if(typeof i===e){i=i.call(t,{hash:{}})}else{if(i===c){i=q.call(t,"description",{hash:{}})}}if(i||i===0){s+=i}s+="</td>\n<td>";h=r.paramType;i=h||t.paramType;if(typeof i===e){i=i.call(t,{hash:{}})}else{if(i===c){i=q.call(t,"paramType",{hash:{}})}}if(i||i===0){s+=i}s+='</td>\n<td><span class="model-signature"></span></td>\n';return s})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_readonly_required=b(function(g,t,r,k,u){r=r||g.helpers;var s="",i,f,h,p,o=this,e="function",q=r.helperMissing,c=void 0,d=this.escapeExpression;function n(y,x){var v="",w;v+="\n <textarea class='body-textarea' readonly='readonly' placeholder='(required)' name='";h=r.name;w=h||y.name;if(typeof w===e){w=w.call(y,{hash:{}})}else{if(w===c){w=q.call(y,"name",{hash:{}})}}v+=d(w)+"'>";h=r.defaultValue;w=h||y.defaultValue;if(typeof w===e){w=w.call(y,{hash:{}})}else{if(w===c){w=q.call(y,"defaultValue",{hash:{}})}}v+=d(w)+"</textarea>\n ";return v}function m(z,y){var v="",x,w;v+="\n ";h=r.defaultValue;x=h||z.defaultValue;w=r["if"];p=o.program(4,l,y);p.hash={};p.fn=p;p.inverse=o.program(6,j,y);x=w.call(z,x,p);if(x||x===0){v+=x}v+="\n ";return v}function l(y,x){var v="",w;v+="\n ";h=r.defaultValue;w=h||y.defaultValue;if(typeof w===e){w=w.call(y,{hash:{}})}else{if(w===c){w=q.call(y,"defaultValue",{hash:{}})}}v+=d(w)+"\n ";return v}function j(w,v){return"\n (empty)\n "}s+="<td class='code required'>";h=r.name;i=h||t.name;if(typeof i===e){i=i.call(t,{hash:{}})}else{if(i===c){i=q.call(t,"name",{hash:{}})}}s+=d(i)+"</td>\n<td>\n ";h=r.isBody;i=h||t.isBody;f=r["if"];p=o.program(1,n,u);p.hash={};p.fn=p;p.inverse=o.program(3,m,u);i=f.call(t,i,p);if(i||i===0){s+=i}s+="\n</td>\n<td>";h=r.description;i=h||t.description;if(typeof i===e){i=i.call(t,{hash:{}})}else{if(i===c){i=q.call(t,"description",{hash:{}})}}if(i||i===0){s+=i}s+="</td>\n<td>";h=r.paramType;i=h||t.paramType;if(typeof i===e){i=i.call(t,{hash:{}})}else{if(i===c){i=q.call(t,"paramType",{hash:{}})}}if(i||i===0){s+=i}s+='</td>\n<td><span class="model-signature"></span></td>\n';return s})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.param_required=b(function(h,v,t,m,A){t=t||h.helpers;var u="",j,g,i,r,q=this,e="function",s=t.helperMissing,c=void 0,d=this.escapeExpression;function p(F,E){var B="",D,C;B+="\n ";i=t.isFile;D=i||F.isFile;C=t["if"];r=q.program(2,o,E);r.hash={};r.fn=r;r.inverse=q.program(4,n,E);D=C.call(F,D,r);if(D||D===0){B+=D}B+="\n ";return B}function o(E,D){var B="",C;B+='\n <input type="file" name=\'';i=t.name;C=i||E.name;if(typeof C===e){C=C.call(E,{hash:{}})}else{if(C===c){C=s.call(E,"name",{hash:{}})}}B+=d(C)+"'/>\n ";return B}function n(F,E){var B="",D,C;B+="\n ";i=t.defaultValue;D=i||F.defaultValue;C=t["if"];r=q.program(5,l,E);r.hash={};r.fn=r;r.inverse=q.program(7,k,E);D=C.call(F,D,r);if(D||D===0){B+=D}B+="\n ";return B}function l(E,D){var B="",C;B+="\n <textarea class='body-textarea' placeholder='(required)' name='";i=t.name;C=i||E.name;if(typeof C===e){C=C.call(E,{hash:{}})}else{if(C===c){C=s.call(E,"name",{hash:{}})}}B+=d(C)+"'>";i=t.defaultValue;C=i||E.defaultValue;if(typeof C===e){C=C.call(E,{hash:{}})}else{if(C===c){C=s.call(E,"defaultValue",{hash:{}})}}B+=d(C)+"</textarea>\n ";return B}function k(E,D){var B="",C;B+="\n <textarea class='body-textarea' placeholder='(required)' name='";i=t.name;C=i||E.name;if(typeof C===e){C=C.call(E,{hash:{}})}else{if(C===c){C=s.call(E,"name",{hash:{}})}}B+=d(C)+'\'></textarea>\n <br />\n <div class="content-type" />\n ';return B}function f(F,E){var B="",D,C;B+="\n ";i=t.isFile;D=i||F.isFile;C=t["if"];r=q.program(10,z,E);r.hash={};r.fn=r;r.inverse=q.program(12,y,E);D=C.call(F,D,r);if(D||D===0){B+=D}B+="\n ";return B}function z(E,D){var B="",C;B+="\n <input class='parameter' class='required' type='file' name='";i=t.name;C=i||E.name;if(typeof C===e){C=C.call(E,{hash:{}})}else{if(C===c){C=s.call(E,"name",{hash:{}})}}B+=d(C)+"'/>\n ";return B}function y(F,E){var B="",D,C;B+="\n ";i=t.defaultValue;D=i||F.defaultValue;C=t["if"];r=q.program(13,x,E);r.hash={};r.fn=r;r.inverse=q.program(15,w,E);D=C.call(F,D,r);if(D||D===0){B+=D}B+="\n ";return B}function x(E,D){var B="",C;B+="\n <input class='parameter required' minlength='1' name='";i=t.name;C=i||E.name;if(typeof C===e){C=C.call(E,{hash:{}})}else{if(C===c){C=s.call(E,"name",{hash:{}})}}B+=d(C)+"' placeholder='(required)' type='text' value='";i=t.defaultValue;C=i||E.defaultValue;if(typeof C===e){C=C.call(E,{hash:{}})}else{if(C===c){C=s.call(E,"defaultValue",{hash:{}})}}B+=d(C)+"'/>\n ";return B}function w(E,D){var B="",C;B+="\n <input class='parameter required' minlength='1' name='";i=t.name;C=i||E.name;if(typeof C===e){C=C.call(E,{hash:{}})}else{if(C===c){C=s.call(E,"name",{hash:{}})}}B+=d(C)+"' placeholder='(required)' type='text' value=''/>\n ";return B}u+="<td class='code required'>";i=t.name;j=i||v.name;if(typeof j===e){j=j.call(v,{hash:{}})}else{if(j===c){j=s.call(v,"name",{hash:{}})}}u+=d(j)+"</td>\n<td>\n ";i=t.isBody;j=i||v.isBody;g=t["if"];r=q.program(1,p,A);r.hash={};r.fn=r;r.inverse=q.program(9,f,A);j=g.call(v,j,r);if(j||j===0){u+=j}u+="\n</td>\n<td>\n <strong>";i=t.description;j=i||v.description;if(typeof j===e){j=j.call(v,{hash:{}})}else{if(j===c){j=s.call(v,"description",{hash:{}})}}if(j||j===0){u+=j}u+="</strong>\n</td>\n<td>";i=t.paramType;j=i||v.paramType;if(typeof j===e){j=j.call(v,{hash:{}})}else{if(j===c){j=s.call(v,"paramType",{hash:{}})}}if(j||j===0){u+=j}u+='</td>\n<td><span class="model-signature"></span></td>\n';return u})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.resource=b(function(e,n,d,l,k){d=d||e.helpers;var i="",c,h,o=this,f="function",m=d.helperMissing,g=void 0,j=this.escapeExpression;i+="<div class='heading'>\n <h2>\n <a href='#!/";h=d.name;c=h||n.name;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"name",{hash:{}})}}i+=j(c)+"' onclick=\"Docs.toggleEndpointListForResource('";h=d.name;c=h||n.name;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"name",{hash:{}})}}i+=j(c)+"');\">/";h=d.name;c=h||n.name;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"name",{hash:{}})}}i+=j(c)+"</a>\n </h2>\n <ul class='options'>\n <li>\n <a href='#!/";h=d.name;c=h||n.name;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"name",{hash:{}})}}i+=j(c)+"' id='endpointListTogger_";h=d.name;c=h||n.name;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"name",{hash:{}})}}i+=j(c)+"'\n onclick=\"Docs.toggleEndpointListForResource('";h=d.name;c=h||n.name;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"name",{hash:{}})}}i+=j(c)+"');\">Show/Hide</a>\n </li>\n <li>\n <a href='#' onclick=\"Docs.collapseOperationsForResource('";h=d.name;c=h||n.name;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"name",{hash:{}})}}i+=j(c)+"'); return false;\">\n List Operations\n </a>\n </li>\n <li>\n <a href='#' onclick=\"Docs.expandOperationsForResource('";h=d.name;c=h||n.name;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"name",{hash:{}})}}i+=j(c)+"'); return false;\">\n Expand Operations\n </a>\n </li>\n <li>\n <a href='";h=d.url;c=h||n.url;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"url",{hash:{}})}}i+=j(c)+"'>Raw</a>\n </li>\n </ul>\n</div>\n<ul class='endpoints' id='";h=d.name;c=h||n.name;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"name",{hash:{}})}}i+=j(c)+"_endpoint_list' style='display:none'>\n\n</ul>\n";return i})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.signature=b(function(e,n,d,l,k){d=d||e.helpers;var i="",c,h,o=this,f="function",m=d.helperMissing,g=void 0,j=this.escapeExpression;i+='<div>\n<ul class="signature-nav">\n <li><a class="description-link" href="#">Model</a></li>\n <li><a class="snippet-link" href="#">Model Schema</a></li>\n</ul>\n<div>\n\n<div class="signature-container">\n <div class="description">\n ';h=d.signature;c=h||n.signature;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"signature",{hash:{}})}}if(c||c===0){i+=c}i+='\n </div>\n\n <div class="snippet">\n <pre><code>';h=d.sampleJSON;c=h||n.sampleJSON;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"sampleJSON",{hash:{}})}}i+=j(c)+'</code></pre>\n <small class="notice"></small>\n </div>\n</div>\n\n';return i})})();(function(){var b=Handlebars.template,a=Handlebars.templates=Handlebars.templates||{};a.status_code=b(function(e,n,d,l,k){d=d||e.helpers;var i="",c,h,o=this,f="function",m=d.helperMissing,g=void 0,j=this.escapeExpression;i+="<td width='15%' class='code'>";h=d.code;c=h||n.code;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"code",{hash:{}})}}i+=j(c)+"</td>\n<td>";h=d.reason;c=h||n.reason;if(typeof c===f){c=c.call(n,{hash:{}})}else{if(c===g){c=m.call(n,"reason",{hash:{}})}}if(c||c===0){i+=c}i+="</td>\n\n";return i})})();(function(){var f,b,h,c,e,j,k,i,a,g={}.hasOwnProperty,d=function(o,m){for(var l in m){if(g.call(m,l)){o[l]=m[l]}}function n(){this.constructor=o}n.prototype=m.prototype;o.prototype=new n();o.__super__=m.prototype;return o};a=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.dom_id="swagger_ui";l.prototype.options=null;l.prototype.api=null;l.prototype.headerView=null;l.prototype.mainView=null;l.prototype.initialize=function(n){var o=this;if(n==null){n={}}if(n.dom_id!=null){this.dom_id=n.dom_id;delete n.dom_id}if(!($("#"+this.dom_id)!=null)){$("body").append('<div id="'+this.dom_id+'"></div>')}this.options=n;this.options.success=function(){return o.render()};this.options.progress=function(p){return o.showMessage(p)};this.options.failure=function(p){return o.onLoadFailure(p)};this.headerView=new b({el:$("#header")});return this.headerView.on("update-swagger-ui",function(p){return o.updateSwaggerUi(p)})};l.prototype.updateSwaggerUi=function(n){this.options.discoveryUrl=n.discoveryUrl;this.options.apiKey=n.apiKey;return this.load()};l.prototype.load=function(){var n;if((n=this.mainView)!=null){n.clear()}this.headerView.update(this.options.discoveryUrl,this.options.apiKey);return this.api=new SwaggerApi(this.options)};l.prototype.render=function(){var n=this;this.showMessage("Finished Loading Resource Information. Rendering Swagger UI...");this.mainView=new h({model:this.api,el:$("#"+this.dom_id)}).render();this.showMessage();switch(this.options.docExpansion){case"full":Docs.expandOperationsForResource("");break;case"list":Docs.collapseOperationsForResource("")}if(this.options.onComplete){this.options.onComplete(this.api,this)}return setTimeout(function(){return Docs.shebang()},400)};l.prototype.showMessage=function(n){if(n==null){n=""}$("#message-bar").removeClass("message-fail");$("#message-bar").addClass("message-success");return $("#message-bar").html(n)};l.prototype.onLoadFailure=function(n){var o;if(n==null){n=""}$("#message-bar").removeClass("message-success");$("#message-bar").addClass("message-fail");o=$("#message-bar").html(n);if(this.options.onFailure!=null){this.options.onFailure(n)}return o};return l})(Backbone.Router);window.SwaggerUi=a;b=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.events={"click #show-pet-store-icon":"showPetStore","click #show-wordnik-dev-icon":"showWordnikDev","click #explore":"showCustom","keyup #input_baseUrl":"showCustomOnKeyup","keyup #input_apiKey":"showCustomOnKeyup"};l.prototype.initialize=function(){};l.prototype.showPetStore=function(n){return this.trigger("update-swagger-ui",{discoveryUrl:"http://petstore.swagger.wordnik.com/api/api-docs.json",apiKey:"special-key"})};l.prototype.showWordnikDev=function(n){return this.trigger("update-swagger-ui",{discoveryUrl:"http://api.wordnik.com/v4/resources.json",apiKey:""})};l.prototype.showCustomOnKeyup=function(n){if(n.keyCode===13){return this.showCustom()}};l.prototype.showCustom=function(n){if(n!=null){n.preventDefault()}return this.trigger("update-swagger-ui",{discoveryUrl:$("#input_baseUrl").val(),apiKey:$("#input_apiKey").val()})};l.prototype.update=function(o,p,n){if(n==null){n=false}$("#input_baseUrl").val(o);$("#input_apiKey").val(p);if(n){return this.trigger("update-swagger-ui",{discoveryUrl:o,apiKey:p})}};return l})(Backbone.View);h=(function(l){d(m,l);function m(){return m.__super__.constructor.apply(this,arguments)}m.prototype.initialize=function(){};m.prototype.render=function(){var q,p,n,o;$(this.el).html(Handlebars.templates.main(this.model));o=this.model.apisArray;for(p=0,n=o.length;p<n;p++){q=o[p];this.addResource(q)}return this};m.prototype.addResource=function(o){var n;n=new j({model:o,tagName:"li",id:"resource_"+o.name,className:"resource"});return $("#resources").append(n.render().el)};m.prototype.clear=function(){return $(this.el).html("")};return m})(Backbone.View);j=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.initialize=function(){};l.prototype.render=function(){var o,q,n,p;$(this.el).html(Handlebars.templates.resource(this.model));this.number=0;p=this.model.operationsArray;for(q=0,n=p.length;q<n;q++){o=p[q];this.addOperation(o)}return this};l.prototype.addOperation=function(n){var o;n.number=this.number;o=new c({model:n,tagName:"li",className:"endpoint"});$(".endpoints",$(this.el)).append(o.render().el);return this.number++};return l})(Backbone.View);c=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.events={"submit .sandbox":"submitOperation","click .submit":"submitOperation","click .response_hider":"hideResponse","click .toggleOperation":"toggleOperationContent"};l.prototype.initialize=function(){};l.prototype.render=function(){var n,x,y,p,u,z,v,s,r,w,o,t,q;y=jQuery.inArray(this.model.httpMethod,this.model.supportedSubmitMethods())>=0;if(!y){this.model.isReadOnly=true}$(this.el).html(Handlebars.templates.operation(this.model));if(this.model.responseClassSignature&&this.model.responseClassSignature!=="string"){z={sampleJSON:this.model.responseSampleJSON,isParam:false,signature:this.model.responseClassSignature};u=new k({model:z,tagName:"div"});$(".model-signature",$(this.el)).append(u.render().el)}else{$(".model-signature",$(this.el)).html(this.model.responseClass)}n={isParam:false};if(this.model.supportedContentTypes){n.produces=this.model.supportedContentTypes}if(this.model.produces){n.produces=this.model.produces}x=new f({model:n});$(".content-type",$(this.el)).append(x.render().el);t=this.model.parameters;for(s=0,w=t.length;s<w;s++){p=t[s];this.addParameter(p)}q=this.model.errorResponses;for(r=0,o=q.length;r<o;r++){v=q[r];this.addStatusCode(v)}return this};l.prototype.addParameter=function(o){var n;n=new e({model:o,tagName:"tr",readOnly:this.model.isReadOnly});return $(".operation-params",$(this.el)).append(n.render().el)};l.prototype.addStatusCode=function(o){var n;n=new i({model:o,tagName:"tr"});return $(".operation-status",$(this.el)).append(n.render().el)};l.prototype.submitOperation=function(K){var F,L,E,v,q,A,P,J,Q,H,D,B,G,s,x,u,r,p,O,S,R,N,M,n,C,z,y,w,t,I=this;if(K!=null){K.preventDefault()}v=$(".sandbox",$(this.el));E=true;v.find("input.required").each(function(){var o=this;$(this).removeClass("error");if(jQuery.trim($(this).val())===""){$(this).addClass("error");$(this).wiggle({callback:function(){return $(o).focus()}});return E=false}});if(E){Q={};C=v.serializeArray();for(x=0,O=C.length;x<O;x++){H=C[x];if((H.value!=null)&&jQuery.trim(H.value).length>0){Q[H.name]=H.value}}P=v.children().find('input[type~="file"]').size()!==0;J=false;L="application/json";if(this.model.consumes&&this.model.consumes.length>0){L=this.model.consumes[0]}else{z=this.model.parameters;for(u=0,S=z.length;u<S;u++){H=z[u];if(H.paramType==="form"){J=true;L=false}}if(P){L=false}else{if(this.model.httpMethod.toLowerCase()==="post"&&J===false){L="application/json"}}}if(P){F=new FormData();y=this.model.parameters;for(r=0,R=y.length;r<R;r++){B=y[r];if((B.paramType==="body"||"form")&&B.name!=="file"&&B.name!=="File"&&(Q[B.name]!=null)){F.append(B.name,Q[B.name])}}$.each(v.children().find('input[type~="file"]'),function(o,T){return F.append($(T).attr("name"),T.files[0])});console.log(F)}else{if(J){F=new FormData();w=this.model.parameters;for(p=0,N=w.length;p<N;p++){B=w[p];if(Q[B.name]!=null){F.append(B.name,Q[B.name])}}}else{F=null;t=this.model.parameters;for(n=0,M=t.length;n<M;n++){B=t[n];if(B.paramType==="body"){F=Q[B.name]}}}}log("bodyParam = "+F);q=null;A=this.model.supportHeaderParams()?(q=this.model.getHeaderParams(Q),this.model.urlify(Q,false)):this.model.urlify(Q,true);log("submitting "+A);$(".request_url",$(this.el)).html("<pre>"+A+"</pre>");$(".response_throbber",$(this.el)).show();D={type:this.model.httpMethod,url:A,headers:q,data:F,contentType:L,dataType:"json",processData:false,error:function(T,U,o){return I.showErrorStatus(T,U,o)},success:function(o){return I.showResponse(o)},complete:function(o){return I.showCompleteStatus(o)}};G=$("td select[name=contentType]",$(this.el)).val();if(G){D.contentType=G}log("content type = "+D.contentType);if(!(D.data||(D.type==="GET"||D.type==="DELETE"))&&D.contentType===!"application/x-www-form-urlencoded"){D.contentType=false}log("content type is now = "+D.contentType);s=$(".content > .content-type > div > select[name=contentType]",$(this.el)).val();if(s){D.headers=D.headers!=null?D.headers:{};D.headers.accept=s}jQuery.ajax(D);return false}};l.prototype.hideResponse=function(n){if(n!=null){n.preventDefault()}$(".response",$(this.el)).slideUp();return $(".response_hider",$(this.el)).fadeOut()};l.prototype.showResponse=function(n){var o;o=JSON.stringify(n,null,"\t").replace(/\n/g,"<br>");return $(".response_body",$(this.el)).html(escape(o))};l.prototype.showErrorStatus=function(n){return this.showStatus(n)};l.prototype.showCompleteStatus=function(n){return this.showStatus(n)};l.prototype.formatXml=function(u){var q,t,o,v,A,w,p,n,y,z,s,r,x;n=/(>)(<)(\/*)/g;z=/[ ]*(.*)[ ]+\n/g;q=/(<.+>)(.+\n)/g;u=u.replace(n,"$1\n$2$3").replace(z,"$1\n").replace(q,"$1\n$2");p=0;t="";A=u.split("\n");o=0;v="other";y={"single->single":0,"single->closing":-1,"single->opening":0,"single->other":0,"closing->single":0,"closing->closing":-1,"closing->opening":0,"closing->other":0,"opening->single":1,"opening->closing":0,"opening->opening":1,"opening->other":1,"other->single":0,"other->closing":-1,"other->opening":0,"other->other":0};s=function(G){var C,B,E,I,F,D,H;D={single:Boolean(G.match(/<.+\/>/)),closing:Boolean(G.match(/<\/.+>/)),opening:Boolean(G.match(/<[^!?].*>/))};F=((function(){var J;J=[];for(E in D){H=D[E];if(H){J.push(E)}}return J})())[0];F=F===void 0?"other":F;C=v+"->"+F;v=F;I="";o+=y[C];I=((function(){var K,L,J;J=[];for(B=K=0,L=o;0<=L?K<L:K>L;B=0<=L?++K:--K){J.push(" ")}return J})()).join("");if(C==="opening->closing"){return t=t.substr(0,t.length-1)+G+"\n"}else{return t+=I+G+"\n"}};for(r=0,x=A.length;r<x;r++){w=A[r];s(w)}return t};l.prototype.showStatus=function(q){var p,r,o;try{p=$("<code />").text(JSON.stringify(JSON.parse(q.responseText),null,2));r=$('<pre class="json" />').append(p)}catch(n){p=$("<code />").text(this.formatXml(q.responseText));r=$('<pre class="xml" />').append(p)}o=r;$(".response_code",$(this.el)).html("<pre>"+q.status+"</pre>");$(".response_body",$(this.el)).html(o);$(".response_headers",$(this.el)).html("<pre>"+q.getAllResponseHeaders()+"</pre>");$(".response",$(this.el)).slideDown();$(".response_hider",$(this.el)).show();$(".response_throbber",$(this.el)).hide();return hljs.highlightBlock($(".response_body",$(this.el))[0])};l.prototype.toggleOperationContent=function(){var n;n=$("#"+Docs.escapeResourceName(this.model.resourceName)+"_"+this.model.nickname+"_"+this.model.httpMethod+"_"+this.model.number+"_content");if(n.is(":visible")){return Docs.collapseOperation(n)}else{return Docs.expandOperation(n)}};return l})(Backbone.View);i=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.initialize=function(){};l.prototype.render=function(){var n;n=this.template();$(this.el).html(n(this.model));return this};l.prototype.template=function(){return Handlebars.templates.status_code};return l})(Backbone.View);e=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.initialize=function(){};l.prototype.render=function(){var q,o,n,r,p;if(this.model.paramType==="body"){this.model.isBody=true}if(this.model.dataType==="file"){this.model.isFile=true}p=this.template();$(this.el).html(p(this.model));n={sampleJSON:this.model.sampleJSON,isParam:true,signature:this.model.signature};if(this.model.sampleJSON){r=new k({model:n,tagName:"div"});$(".model-signature",$(this.el)).append(r.render().el)}else{$(".model-signature",$(this.el)).html(this.model.signature)}q={isParam:false};if(this.model.supportedContentTypes){q.produces=this.model.supportedContentTypes}if(this.model.produces){q.produces=this.model.produces}o=new f({model:q});$(".content-type",$(this.el)).append(o.render().el);return this};l.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 l})(Backbone.View);k=(function(m){d(l,m);function l(){return l.__super__.constructor.apply(this,arguments)}l.prototype.events={"click a.description-link":"switchToDescription","click a.snippet-link":"switchToSnippet","mousedown .snippet":"snippetToTextArea"};l.prototype.initialize=function(){};l.prototype.render=function(){var n;n=this.template();$(this.el).html(n(this.model));this.switchToDescription();this.isParam=this.model.isParam;if(this.isParam){$(".notice",$(this.el)).text("Click to set as parameter value")}return this};l.prototype.template=function(){return Handlebars.templates.signature};l.prototype.switchToDescription=function(n){if(n!=null){n.preventDefault()}$(".snippet",$(this.el)).hide();$(".description",$(this.el)).show();$(".description-link",$(this.el)).addClass("selected");return $(".snippet-link",$(this.el)).removeClass("selected")};l.prototype.switchToSnippet=function(n){if(n!=null){n.preventDefault()}$(".description",$(this.el)).hide();$(".snippet",$(this.el)).show();$(".snippet-link",$(this.el)).addClass("selected");return $(".description-link",$(this.el)).removeClass("selected")};l.prototype.snippetToTextArea=function(n){var o;if(this.isParam){if(n!=null){n.preventDefault()}o=$("textarea",$(this.el.parentNode.parentNode.parentNode));if($.trim(o.val())===""){return o.val(this.model.sampleJSON)}}};return l})(Backbone.View);f=(function(l){d(m,l);function m(){return m.__super__.constructor.apply(this,arguments)}m.prototype.initialize=function(){};m.prototype.render=function(){var n;n=this.template();$(this.el).html(n(this.model));this.isParam=this.model.isParam;if(this.isParam){$("label[for=contentType]",$(this.el)).text("Parameter content type:")}else{$("label[for=contentType]",$(this.el)).text("Response Content Type")}return this};m.prototype.template=function(){return Handlebars.templates.content_type};return m})(Backbone.View)}).call(this);
Binary file
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ gem_name = "insta_swag"
3
+
4
+ lib = File.expand_path('../lib', __FILE__)
5
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
+ require "#{gem_name}/version"
7
+
8
+ Gem::Specification.new do |spec|
9
+ spec.name = gem_name
10
+ spec.version = InstaSwag::VERSION
11
+ spec.authors = ["Workshare's dev team"]
12
+ spec.email = ['_Development@workshare.com']
13
+ spec.description = File.read('README.md').split("\n").reject{|l| l.length == 0 || l =~ /^[#=]+/ }.first
14
+ spec.summary = spec.description
15
+ spec.homepage = "https://github.com/workshare/insta_swag"
16
+ spec.license = "MIT"
17
+
18
+ spec.files = `git ls-files`.split($/)
19
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.3"
24
+ spec.add_development_dependency "rake"
25
+ end
@@ -0,0 +1,25 @@
1
+ require "insta_swag/version"
2
+ require "rack"
3
+
4
+ module InstaSwag
5
+
6
+ ASSETS_PATH = "/assets"
7
+ DOCUMENTATION_PATH = "/documentation"
8
+ INDEX_PATH = DOCUMENTATION_PATH + "/index.html"
9
+ MOUNT_PATH = DOCUMENTATION_PATH + "/resources"
10
+
11
+ autoload :StaticFiles, 'insta_swag/static_files'
12
+ autoload :AssetsApp, 'insta_swag/assets_app'
13
+ autoload :DocumentationApp, 'insta_swag/documentation_app'
14
+ autoload :Settings, "insta_swag/settings"
15
+
16
+ def self.for(klass, settings = {})
17
+ settings = Settings.new klass, settings
18
+
19
+ Rack::Builder.new do
20
+ map settings.assets_path, &InstaSwag::AssetsApp
21
+ map settings.prefix_path, &DocumentationApp.create(klass, settings)
22
+ map settings.index_path, &StaticFiles.create(settings)
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,6 @@
1
+ module InstaSwag
2
+ AssetsApp = ->(env) do
3
+ dir = File.expand_path("../../../public/docs", __FILE__)
4
+ run Rack::Directory.new dir
5
+ end
6
+ end
@@ -0,0 +1,29 @@
1
+ require "json"
2
+
3
+ module InstaSwag
4
+ class DocumentationApp
5
+
6
+ attr_reader :klass, :settings, :docs_klass
7
+
8
+ def initialize(klass, settings)
9
+ @klass, @settings = klass, settings
10
+ @docs_klass = Class.new(Grape::API)
11
+ set_swagger
12
+ end
13
+
14
+ def set_swagger
15
+ docs_klass.mount klass
16
+ docs_klass.add_swagger_documentation(
17
+ api_version: klass.version,
18
+ mount_path: MOUNT_PATH,
19
+ hide_documentation_path: settings[:hide_documentation_path],
20
+ base_path: settings[:prefix]
21
+ )
22
+ end
23
+
24
+ def self.create(klass, settings)
25
+ app = new(klass, settings)
26
+ ->(env) { run app.docs_klass }
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,28 @@
1
+ module InstaSwag
2
+ class DocumentationFactory
3
+ class << self
4
+
5
+ def create_for klass, settings
6
+ new_documentation_class klass, settings
7
+ end
8
+
9
+ private
10
+
11
+ def new_documentation_class(klass, settings)
12
+ docs_klass = Class.new(Grape::API)
13
+ set_swag_values(docs_klass, klass, settings)
14
+ docs_klass
15
+ end
16
+
17
+ def set_swag_values(docs_klass, klass, settings)
18
+ docs_klass.mount klass
19
+ docs_klass.add_swagger_documentation(
20
+ :api_version => klass.version,
21
+ :mount_path => "documentation/resources",
22
+ :hide_documentation_path => settings[:hide_documentation_path],
23
+ :base_path => settings[:prefix],
24
+ )
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,54 @@
1
+ module InstaSwag
2
+ class Settings
3
+
4
+ attr_reader :opts, :klass
5
+
6
+ def initialize(klass, opts = {})
7
+ @klass = klass
8
+ @opts = opts.merge defaults
9
+ end
10
+
11
+ def defaults
12
+ {
13
+ api: klass,
14
+ api_version: klass.version,
15
+ hide_documentation_path: true,
16
+ documentation_prefix: DOCUMENTATION_PATH,
17
+ }
18
+ end
19
+
20
+ def index_path
21
+ correct_path Pathname.new(opts[:prefix].to_s + INDEX_PATH).cleanpath.to_path
22
+ end
23
+
24
+ def assets_path
25
+ correct_path Pathname.new(opts[:prefix].to_s + ASSETS_PATH).cleanpath.to_path
26
+ end
27
+
28
+ def prefix_path
29
+ correct_path opts[:prefix].to_s
30
+ end
31
+
32
+ private
33
+
34
+ def correct_path path
35
+ if (path.start_with? "/") && (path.end_with? "/")
36
+ path[0..-2]
37
+ elsif path.start_with?("/") && !(path.end_with?("/"))
38
+ path
39
+ elsif path.end_with? ("/")
40
+ "/#{path[0..-2]}"
41
+ else
42
+ "/#{path}"
43
+ end
44
+ end
45
+
46
+ def method_missing(method, *args, &block)
47
+ if opts.respond_to? method
48
+ opts.send(method, *args, &block)
49
+ else
50
+ super
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,39 @@
1
+ require "erb"
2
+ require 'ostruct'
3
+
4
+ module InstaSwag
5
+ class StaticFiles
6
+
7
+ attr_accessor :settings
8
+
9
+ def self.create(settings)
10
+ instance = new(settings)
11
+ instance.to_app
12
+ end
13
+
14
+ def index_path
15
+ File.expand_path("../../../public/docs/index.html", __FILE__)
16
+ end
17
+
18
+ def to_app
19
+ index = eval_and_read(index_path)
20
+ ->(env) do
21
+ run Proc.new { |env| ['200', {'Content-Type' => 'text/html'}, [index]] }
22
+ end
23
+ end
24
+
25
+ def initialize(settings)
26
+ @settings = settings
27
+ end
28
+
29
+ def eval_and_read(path)
30
+ namespace = OpenStruct.new(url: complete_path)
31
+ template = File.read(index_path)
32
+ ERB.new(template).result(namespace.instance_eval { binding })
33
+ end
34
+
35
+ def complete_path
36
+ settings.prefix_path + "/documentation" + "/resources" + ".json"
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,3 @@
1
+ module InstaSwag
2
+ VERSION = "0.1.1"
3
+ end
Binary file
@@ -0,0 +1,135 @@
1
+ /*
2
+
3
+ Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ background: #F0F0F0;
10
+ }
11
+
12
+ pre code,
13
+ pre .subst,
14
+ pre .tag .title,
15
+ pre .lisp .title,
16
+ pre .clojure .built_in,
17
+ pre .nginx .title {
18
+ color: black;
19
+ }
20
+
21
+ pre .string,
22
+ pre .title,
23
+ pre .constant,
24
+ pre .parent,
25
+ pre .tag .value,
26
+ pre .rules .value,
27
+ pre .rules .value .number,
28
+ pre .preprocessor,
29
+ pre .ruby .symbol,
30
+ pre .ruby .symbol .string,
31
+ pre .aggregate,
32
+ pre .template_tag,
33
+ pre .django .variable,
34
+ pre .smalltalk .class,
35
+ pre .addition,
36
+ pre .flow,
37
+ pre .stream,
38
+ pre .bash .variable,
39
+ pre .apache .tag,
40
+ pre .apache .cbracket,
41
+ pre .tex .command,
42
+ pre .tex .special,
43
+ pre .erlang_repl .function_or_atom,
44
+ pre .markdown .header {
45
+ color: #800;
46
+ }
47
+
48
+ pre .comment,
49
+ pre .annotation,
50
+ pre .template_comment,
51
+ pre .diff .header,
52
+ pre .chunk,
53
+ pre .markdown .blockquote {
54
+ color: #888;
55
+ }
56
+
57
+ pre .number,
58
+ pre .date,
59
+ pre .regexp,
60
+ pre .literal,
61
+ pre .smalltalk .symbol,
62
+ pre .smalltalk .char,
63
+ pre .go .constant,
64
+ pre .change,
65
+ pre .markdown .bullet,
66
+ pre .markdown .link_url {
67
+ color: #080;
68
+ }
69
+
70
+ pre .label,
71
+ pre .javadoc,
72
+ pre .ruby .string,
73
+ pre .decorator,
74
+ pre .filter .argument,
75
+ pre .localvars,
76
+ pre .array,
77
+ pre .attr_selector,
78
+ pre .important,
79
+ pre .pseudo,
80
+ pre .pi,
81
+ pre .doctype,
82
+ pre .deletion,
83
+ pre .envvar,
84
+ pre .shebang,
85
+ pre .apache .sqbracket,
86
+ pre .nginx .built_in,
87
+ pre .tex .formula,
88
+ pre .erlang_repl .reserved,
89
+ pre .prompt,
90
+ pre .markdown .link_label,
91
+ pre .vhdl .attribute,
92
+ pre .clojure .attribute,
93
+ pre .coffeescript .property {
94
+ color: #88F
95
+ }
96
+
97
+ pre .keyword,
98
+ pre .id,
99
+ pre .phpdoc,
100
+ pre .title,
101
+ pre .built_in,
102
+ pre .aggregate,
103
+ pre .css .tag,
104
+ pre .javadoctag,
105
+ pre .phpdoc,
106
+ pre .yardoctag,
107
+ pre .smalltalk .class,
108
+ pre .winutils,
109
+ pre .bash .variable,
110
+ pre .apache .tag,
111
+ pre .go .typename,
112
+ pre .tex .command,
113
+ pre .markdown .strong,
114
+ pre .request,
115
+ pre .status {
116
+ font-weight: bold;
117
+ }
118
+
119
+ pre .markdown .emphasis {
120
+ font-style: italic;
121
+ }
122
+
123
+ pre .nginx .built_in {
124
+ font-weight: normal;
125
+ }
126
+
127
+ pre .coffeescript .javascript,
128
+ pre .javascript .xml,
129
+ pre .tex .formula,
130
+ pre .xml .javascript,
131
+ pre .xml .vbscript,
132
+ pre .xml .css,
133
+ pre .xml .cdata {
134
+ opacity: 0.5;
135
+ }
@@ -0,0 +1,1759 @@
1
+ html, body, div, span, applet, object, iframe,
2
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3
+ a, abbr, acronym, address, big, cite, code,
4
+ del, dfn, em, img, ins, kbd, q, s, samp,
5
+ small, strike, strong, sub, sup, tt, var,
6
+ b, u, i, center,
7
+ dl, dt, dd, ol, ul, li,
8
+ fieldset, form, label, legend,
9
+ table, caption, tbody, tfoot, thead, tr, th, td,
10
+ article, aside, canvas, details, embed,
11
+ figure, figcaption, footer, header, hgroup,
12
+ menu, nav, output, ruby, section, summary,
13
+ time, mark, audio, video {
14
+ margin: 0;
15
+ padding: 0;
16
+ border: 0;
17
+ font-size: 100%;
18
+ font: inherit;
19
+ vertical-align: baseline;
20
+ }
21
+
22
+ body {
23
+ line-height: 1;
24
+ }
25
+
26
+ ol, ul {
27
+ list-style: none;
28
+ }
29
+
30
+ table {
31
+ border-collapse: collapse;
32
+ border-spacing: 0;
33
+ }
34
+
35
+ caption, th, td {
36
+ text-align: left;
37
+ font-weight: normal;
38
+ vertical-align: middle;
39
+ }
40
+
41
+ q, blockquote {
42
+ quotes: none;
43
+ }
44
+
45
+ q:before, q:after, blockquote:before, blockquote:after {
46
+ content: "";
47
+ content: none;
48
+ }
49
+
50
+ a img {
51
+ border: none;
52
+ }
53
+
54
+ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
55
+ display: block;
56
+ }
57
+
58
+ h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
59
+ text-decoration: none;
60
+ }
61
+
62
+ h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
63
+ text-decoration: underline;
64
+ }
65
+
66
+ h1 span.divider, h2 span.divider, h3 span.divider, h4 span.divider, h5 span.divider, h6 span.divider {
67
+ color: #aaaaaa;
68
+ }
69
+
70
+ h1 {
71
+ color: black;
72
+ font-size: 1.5em;
73
+ line-height: 1.3em;
74
+ padding: 10px 0 10px 0;
75
+ font-family: "Droid Sans", sans-serif;
76
+ font-weight: bold;
77
+ }
78
+
79
+ h2 {
80
+ color: black;
81
+ font-size: 1.3em;
82
+ padding: 10px 0 10px 0;
83
+ }
84
+
85
+ h2 a {
86
+ color: black;
87
+ }
88
+
89
+ h2 span.sub {
90
+ font-size: 0.7em;
91
+ color: #999999;
92
+ font-style: italic;
93
+ }
94
+
95
+ h2 span.sub a {
96
+ color: #777777;
97
+ }
98
+
99
+ h3 {
100
+ color: black;
101
+ font-size: 1.1em;
102
+ padding: 10px 0 10px 0;
103
+ }
104
+
105
+ .heading_with_menu {
106
+ float: none;
107
+ clear: both;
108
+ overflow: hidden;
109
+ display: block;
110
+ }
111
+
112
+ .heading_with_menu h1, .heading_with_menu h2, .heading_with_menu h3, .heading_with_menu h4, .heading_with_menu h5, .heading_with_menu h6 {
113
+ display: block;
114
+ clear: none;
115
+ float: left;
116
+ -moz-box-sizing: border-box;
117
+ -webkit-box-sizing: border-box;
118
+ -ms-box-sizing: border-box;
119
+ box-sizing: border-box;
120
+ width: 60%;
121
+ }
122
+
123
+ .heading_with_menu ul {
124
+ display: block;
125
+ clear: none;
126
+ float: right;
127
+ -moz-box-sizing: border-box;
128
+ -webkit-box-sizing: border-box;
129
+ -ms-box-sizing: border-box;
130
+ box-sizing: border-box;
131
+ margin-top: 10px;
132
+ }
133
+
134
+ input.parameter {
135
+ width: 300px;
136
+ border: 1px solid #aaa;
137
+ }
138
+
139
+ .body-textarea {
140
+ width: 300px;
141
+ height: 100px;
142
+ border: 1px solid #aaa;
143
+ }
144
+
145
+ p {
146
+ line-height: 1.4em;
147
+ padding: 0 0 10px;
148
+ color: #333333;
149
+ }
150
+
151
+ ol {
152
+ margin: 0px 0 10px;
153
+ padding: 0 0 0 18px;
154
+ list-style-type: decimal;
155
+ }
156
+
157
+ ol li {
158
+ padding: 5px 0px;
159
+ font-size: 0.9em;
160
+ color: #333333;
161
+ }
162
+
163
+ .markdown h3 {
164
+ color: #547f00;
165
+ }
166
+
167
+ .markdown h4 {
168
+ color: #666666;
169
+ }
170
+
171
+ .markdown pre {
172
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
173
+ background-color: #fcf6db;
174
+ border: 1px solid #e5e0c6;
175
+ padding: 10px;
176
+ margin: 0 0 10px 0;
177
+ }
178
+
179
+ .markdown pre code {
180
+ line-height: 1.6em;
181
+ }
182
+
183
+ .markdown p code, .markdown li code {
184
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
185
+ background-color: #f0f0f0;
186
+ color: black;
187
+ padding: 1px 3px;
188
+ }
189
+
190
+ .markdown ol, .markdown ul {
191
+ font-family: "Droid Sans", sans-serif;
192
+ margin: 5px 0 10px;
193
+ padding: 0 0 0 18px;
194
+ list-style-type: disc;
195
+ }
196
+
197
+ .markdown ol li, .markdown ul li {
198
+ padding: 3px 0px;
199
+ line-height: 1.4em;
200
+ color: #333333;
201
+ }
202
+
203
+ div.gist {
204
+ margin: 20px 0 25px 0 !important;
205
+ }
206
+
207
+ p.big, div.big p {
208
+ font-size: 1em;
209
+ margin-bottom: 10px;
210
+ }
211
+
212
+ span.weak {
213
+ color: #666666;
214
+ }
215
+
216
+ span.blank, span.empty {
217
+ color: #888888;
218
+ font-style: italic;
219
+ }
220
+
221
+ a {
222
+ color: #547f00;
223
+ }
224
+
225
+ b, strong {
226
+ font-family: "Droid Sans", sans-serif;
227
+ font-weight: bold;
228
+ }
229
+
230
+ .code {
231
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
232
+ }
233
+
234
+ pre {
235
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
236
+ background-color: #fcf6db;
237
+ border: 1px solid #e5e0c6;
238
+ padding: 10px;
239
+ }
240
+
241
+ pre code {
242
+ line-height: 1.6em;
243
+ }
244
+
245
+ .required {
246
+ font-weight: bold;
247
+ }
248
+
249
+ table.fullwidth {
250
+ width: 100%;
251
+ }
252
+
253
+ table thead tr th {
254
+ padding: 5px;
255
+ font-size: 0.9em;
256
+ color: #666666;
257
+ border-bottom: 1px solid #999999;
258
+ }
259
+
260
+ table tbody tr.offset {
261
+ background-color: #f5f5f5;
262
+ }
263
+
264
+ table tbody tr td {
265
+ padding: 6px;
266
+ font-size: 0.9em;
267
+ border-bottom: 1px solid #cccccc;
268
+ vertical-align: top;
269
+ line-height: 1.3em;
270
+ }
271
+
272
+ table tbody tr:last-child td {
273
+ border-bottom: none;
274
+ }
275
+
276
+ table tbody tr.offset {
277
+ background-color: #f0f0f0;
278
+ }
279
+
280
+ form.form_box {
281
+ background-color: #ebf3f9;
282
+ border: 1px solid #c3d9ec;
283
+ padding: 10px;
284
+ }
285
+
286
+ form.form_box label {
287
+ color: #0f6ab4 !important;
288
+ }
289
+
290
+ form.form_box input[type=submit] {
291
+ display: block;
292
+ padding: 10px;
293
+ }
294
+
295
+ form.form_box p {
296
+ font-size: 0.9em;
297
+ padding: 0 0 15px;
298
+ color: #7e7b6d;
299
+ }
300
+
301
+ form.form_box p a {
302
+ color: #646257;
303
+ }
304
+
305
+ form.form_box p strong {
306
+ color: black;
307
+ }
308
+
309
+ form.form_box p.weak {
310
+ font-size: 0.8em;
311
+ }
312
+
313
+ form.formtastic fieldset.inputs ol li p.inline-hints {
314
+ margin-left: 0;
315
+ font-style: italic;
316
+ font-size: 0.9em;
317
+ margin: 0;
318
+ }
319
+
320
+ form.formtastic fieldset.inputs ol li label {
321
+ display: block;
322
+ clear: both;
323
+ width: auto;
324
+ padding: 0 0 3px;
325
+ color: #666666;
326
+ }
327
+
328
+ form.formtastic fieldset.inputs ol li label abbr {
329
+ padding-left: 3px;
330
+ color: #888888;
331
+ }
332
+
333
+ form.formtastic fieldset.inputs ol li.required label {
334
+ color: black;
335
+ }
336
+
337
+ form.formtastic fieldset.inputs ol li.string input, form.formtastic fieldset.inputs ol li.url input, form.formtastic fieldset.inputs ol li.numeric input {
338
+ display: block;
339
+ padding: 4px;
340
+ width: auto;
341
+ clear: both;
342
+ }
343
+
344
+ form.formtastic fieldset.inputs ol li.string input.title, form.formtastic fieldset.inputs ol li.url input.title, form.formtastic fieldset.inputs ol li.numeric input.title {
345
+ font-size: 1.3em;
346
+ }
347
+
348
+ form.formtastic fieldset.inputs ol li.text textarea {
349
+ font-family: "Droid Sans", sans-serif;
350
+ height: 250px;
351
+ padding: 4px;
352
+ display: block;
353
+ clear: both;
354
+ }
355
+
356
+ form.formtastic fieldset.inputs ol li.select select {
357
+ display: block;
358
+ clear: both;
359
+ }
360
+
361
+ form.formtastic fieldset.inputs ol li.boolean {
362
+ float: none;
363
+ clear: both;
364
+ overflow: hidden;
365
+ display: block;
366
+ }
367
+
368
+ form.formtastic fieldset.inputs ol li.boolean input {
369
+ display: block;
370
+ float: left;
371
+ clear: none;
372
+ margin: 0 5px 0 0;
373
+ }
374
+
375
+ form.formtastic fieldset.inputs ol li.boolean label {
376
+ display: block;
377
+ float: left;
378
+ clear: none;
379
+ margin: 0;
380
+ padding: 0;
381
+ }
382
+
383
+ form.formtastic fieldset.buttons {
384
+ margin: 0;
385
+ padding: 0;
386
+ }
387
+
388
+ form.fullwidth ol li.string input, form.fullwidth ol li.url input, form.fullwidth ol li.text textarea, form.fullwidth ol li.numeric input {
389
+ width: 500px !important;
390
+ }
391
+
392
+ body {
393
+ font-family: "Droid Sans", sans-serif;
394
+ }
395
+
396
+ body #content_message {
397
+ margin: 10px 15px;
398
+ font-style: italic;
399
+ color: #999999;
400
+ }
401
+
402
+ body #header {
403
+ background-color: #89bf04;
404
+ padding: 14px;
405
+ }
406
+
407
+ body #header a#logo {
408
+ font-size: 1.5em;
409
+ font-weight: bold;
410
+ text-decoration: none;
411
+ background: transparent url(../images/logo_small.png) no-repeat left center;
412
+ padding: 20px 0 20px 40px;
413
+ color: white;
414
+ }
415
+
416
+ body #header form#api_selector {
417
+ display: block;
418
+ clear: none;
419
+ float: right;
420
+ }
421
+
422
+ body #header form#api_selector .input {
423
+ display: block;
424
+ clear: none;
425
+ float: left;
426
+ margin: 0 10px 0 0;
427
+ }
428
+
429
+ body #header form#api_selector .input input {
430
+ font-size: 0.9em;
431
+ padding: 3px;
432
+ margin: 0;
433
+ }
434
+
435
+ body #header form#api_selector .input input#input_baseUrl {
436
+ width: 400px;
437
+ }
438
+
439
+ body #header form#api_selector .input input#input_apiKey {
440
+ width: 200px;
441
+ }
442
+
443
+ body #header form#api_selector .input a#explore {
444
+ display: block;
445
+ text-decoration: none;
446
+ font-weight: bold;
447
+ padding: 6px 8px;
448
+ font-size: 0.9em;
449
+ color: white;
450
+ background-color: #547f00;
451
+ -moz-border-radius: 4px;
452
+ -webkit-border-radius: 4px;
453
+ -o-border-radius: 4px;
454
+ -ms-border-radius: 4px;
455
+ -khtml-border-radius: 4px;
456
+ border-radius: 4px;
457
+ }
458
+
459
+ body #header form#api_selector .input a#explore:hover {
460
+ background-color: #547f00;
461
+ }
462
+
463
+ body p#colophon {
464
+ margin: 0 15px 40px 15px;
465
+ padding: 10px 0;
466
+ font-size: 0.8em;
467
+ border-top: 1px solid #dddddd;
468
+ font-family: "Droid Sans", sans-serif;
469
+ color: #999999;
470
+ font-style: italic;
471
+ }
472
+
473
+ body p#colophon a {
474
+ text-decoration: none;
475
+ color: #547f00;
476
+ }
477
+
478
+ body ul#resources {
479
+ font-family: "Droid Sans", sans-serif;
480
+ font-size: 0.9em;
481
+ }
482
+
483
+ body ul#resources li.resource {
484
+ border-bottom: 1px solid #dddddd;
485
+ }
486
+
487
+ body ul#resources li.resource:last-child {
488
+ border-bottom: none;
489
+ }
490
+
491
+ body ul#resources li.resource div.heading {
492
+ border: 1px solid transparent;
493
+ float: none;
494
+ clear: both;
495
+ overflow: hidden;
496
+ display: block;
497
+ }
498
+
499
+ body ul#resources li.resource div.heading h2 {
500
+ color: #999999;
501
+ padding-left: 0;
502
+ display: block;
503
+ clear: none;
504
+ float: left;
505
+ font-family: "Droid Sans", sans-serif;
506
+ font-weight: bold;
507
+ }
508
+
509
+ body ul#resources li.resource div.heading h2 a {
510
+ color: #999999;
511
+ }
512
+
513
+ body ul#resources li.resource div.heading h2 a:hover {
514
+ color: black;
515
+ }
516
+
517
+ body ul#resources li.resource div.heading ul.options {
518
+ overflow: hidden;
519
+ padding: 0;
520
+ display: block;
521
+ clear: none;
522
+ float: right;
523
+ margin: 14px 10px 0 0;
524
+ }
525
+
526
+ body ul#resources li.resource div.heading ul.options li {
527
+ float: left;
528
+ clear: none;
529
+ margin: 0;
530
+ padding: 2px 10px;
531
+ border-right: 1px solid #dddddd;
532
+ }
533
+
534
+ body ul#resources li.resource div.heading ul.options li:first-child, body ul#resources li.resource div.heading ul.options li.first {
535
+ padding-left: 0;
536
+ }
537
+
538
+ body ul#resources li.resource div.heading ul.options li:last-child, body ul#resources li.resource div.heading ul.options li.last {
539
+ padding-right: 0;
540
+ border-right: none;
541
+ }
542
+
543
+ body ul#resources li.resource div.heading ul.options li {
544
+ color: #666666;
545
+ font-size: 0.9em;
546
+ }
547
+
548
+ body ul#resources li.resource div.heading ul.options li a {
549
+ color: #aaaaaa;
550
+ text-decoration: none;
551
+ }
552
+
553
+ body ul#resources li.resource div.heading ul.options li a:hover {
554
+ text-decoration: underline;
555
+ color: black;
556
+ }
557
+
558
+ body ul#resources li.resource:hover div.heading h2 a, body ul#resources li.resource.active div.heading h2 a {
559
+ color: black;
560
+ }
561
+
562
+ body ul#resources li.resource:hover div.heading ul.options li a, body ul#resources li.resource.active div.heading ul.options li a {
563
+ color: #555555;
564
+ }
565
+
566
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get {
567
+ float: none;
568
+ clear: both;
569
+ overflow: hidden;
570
+ display: block;
571
+ margin: 0 0 10px;
572
+ padding: 0;
573
+ }
574
+
575
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading {
576
+ float: none;
577
+ clear: both;
578
+ overflow: hidden;
579
+ display: block;
580
+ margin: 0;
581
+ padding: 0;
582
+ background-color: #e7f0f7;
583
+ border: 1px solid #c3d9ec;
584
+ }
585
+
586
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 {
587
+ display: block;
588
+ clear: none;
589
+ float: left;
590
+ width: auto;
591
+ margin: 0;
592
+ padding: 0;
593
+ line-height: 1.1em;
594
+ color: black;
595
+ }
596
+
597
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 span {
598
+ margin: 0;
599
+ padding: 0;
600
+ }
601
+
602
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 span.http_method a {
603
+ text-transform: uppercase;
604
+ background-color: #0f6ab4;
605
+ text-decoration: none;
606
+ color: white;
607
+ display: inline-block;
608
+ width: 50px;
609
+ font-size: 0.7em;
610
+ text-align: center;
611
+ padding: 7px 0 4px 0;
612
+ -moz-border-radius: 2px;
613
+ -webkit-border-radius: 2px;
614
+ -o-border-radius: 2px;
615
+ -ms-border-radius: 2px;
616
+ -khtml-border-radius: 2px;
617
+ border-radius: 2px;
618
+ }
619
+
620
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 span.path {
621
+ padding-left: 10px;
622
+ }
623
+
624
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 span.path a {
625
+ color: black;
626
+ text-decoration: none;
627
+ }
628
+
629
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 span.path a:hover {
630
+ text-decoration: underline;
631
+ }
632
+
633
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options {
634
+ overflow: hidden;
635
+ padding: 0;
636
+ display: block;
637
+ clear: none;
638
+ float: right;
639
+ margin: 6px 10px 0 0;
640
+ }
641
+
642
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li {
643
+ float: left;
644
+ clear: none;
645
+ margin: 0;
646
+ padding: 2px 10px;
647
+ border-right: 1px solid #dddddd;
648
+ }
649
+
650
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li:first-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li.first {
651
+ padding-left: 0;
652
+ }
653
+
654
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li:last-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li.last {
655
+ padding-right: 0;
656
+ border-right: none;
657
+ }
658
+
659
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li {
660
+ border-right-color: #c3d9ec;
661
+ color: #0f6ab4;
662
+ font-size: 0.9em;
663
+ }
664
+
665
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li a {
666
+ color: #0f6ab4;
667
+ text-decoration: none;
668
+ }
669
+
670
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li a:hover, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li a:active, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options li a.active {
671
+ text-decoration: underline;
672
+ }
673
+
674
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content {
675
+ background-color: #ebf3f9;
676
+ border: 1px solid #c3d9ec;
677
+ border-top: none;
678
+ padding: 10px;
679
+ -moz-border-radius-bottomleft: 6px;
680
+ -webkit-border-bottom-left-radius: 6px;
681
+ -o-border-bottom-left-radius: 6px;
682
+ -ms-border-bottom-left-radius: 6px;
683
+ -khtml-border-bottom-left-radius: 6px;
684
+ border-bottom-left-radius: 6px;
685
+ -moz-border-radius-bottomright: 6px;
686
+ -webkit-border-bottom-right-radius: 6px;
687
+ -o-border-bottom-right-radius: 6px;
688
+ -ms-border-bottom-right-radius: 6px;
689
+ -khtml-border-bottom-right-radius: 6px;
690
+ border-bottom-right-radius: 6px;
691
+ margin: 0 0 20px;
692
+ }
693
+
694
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content h4 {
695
+ color: #0f6ab4;
696
+ font-size: 1.1em;
697
+ margin: 0;
698
+ padding: 15px 0 5px;
699
+ }
700
+
701
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content form input[type='text'].error {
702
+ outline: 2px solid black;
703
+ outline-color: #cc0000;
704
+ }
705
+
706
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header {
707
+ float: none;
708
+ clear: both;
709
+ overflow: hidden;
710
+ display: block;
711
+ }
712
+
713
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header input.submit {
714
+ display: block;
715
+ clear: none;
716
+ float: left;
717
+ padding: 6px 8px;
718
+ }
719
+
720
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header img {
721
+ display: block;
722
+ clear: none;
723
+ float: right;
724
+ }
725
+
726
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header a {
727
+ padding: 4px 0 0 10px;
728
+ color: #6fa5d2;
729
+ display: inline-block;
730
+ font-size: 0.9em;
731
+ }
732
+
733
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.response div.block pre {
734
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
735
+ padding: 10px;
736
+ font-size: 0.9em;
737
+ max-height: 400px;
738
+ overflow-y: auto;
739
+ }
740
+
741
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post {
742
+ float: none;
743
+ clear: both;
744
+ overflow: hidden;
745
+ display: block;
746
+ margin: 0 0 10px;
747
+ padding: 0;
748
+ }
749
+
750
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading {
751
+ float: none;
752
+ clear: both;
753
+ overflow: hidden;
754
+ display: block;
755
+ margin: 0;
756
+ padding: 0;
757
+ background-color: #e7f6ec;
758
+ border: 1px solid #c3e8d1;
759
+ }
760
+
761
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 {
762
+ display: block;
763
+ clear: none;
764
+ float: left;
765
+ width: auto;
766
+ margin: 0;
767
+ padding: 0;
768
+ line-height: 1.1em;
769
+ color: black;
770
+ }
771
+
772
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 span {
773
+ margin: 0;
774
+ padding: 0;
775
+ }
776
+
777
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 span.http_method a {
778
+ text-transform: uppercase;
779
+ background-color: #10a54a;
780
+ text-decoration: none;
781
+ color: white;
782
+ display: inline-block;
783
+ width: 50px;
784
+ font-size: 0.7em;
785
+ text-align: center;
786
+ padding: 7px 0 4px 0;
787
+ -moz-border-radius: 2px;
788
+ -webkit-border-radius: 2px;
789
+ -o-border-radius: 2px;
790
+ -ms-border-radius: 2px;
791
+ -khtml-border-radius: 2px;
792
+ border-radius: 2px;
793
+ }
794
+
795
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 span.path {
796
+ padding-left: 10px;
797
+ }
798
+
799
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 span.path a {
800
+ color: black;
801
+ text-decoration: none;
802
+ }
803
+
804
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 span.path a:hover {
805
+ text-decoration: underline;
806
+ }
807
+
808
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options {
809
+ overflow: hidden;
810
+ padding: 0;
811
+ display: block;
812
+ clear: none;
813
+ float: right;
814
+ margin: 6px 10px 0 0;
815
+ }
816
+
817
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li {
818
+ float: left;
819
+ clear: none;
820
+ margin: 0;
821
+ padding: 2px 10px;
822
+ border-right: 1px solid #dddddd;
823
+ }
824
+
825
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li:first-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li.first {
826
+ padding-left: 0;
827
+ }
828
+
829
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li:last-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li.last {
830
+ padding-right: 0;
831
+ border-right: none;
832
+ }
833
+
834
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li {
835
+ border-right-color: #c3e8d1;
836
+ color: #10a54a;
837
+ font-size: 0.9em;
838
+ }
839
+
840
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li a {
841
+ color: #10a54a;
842
+ text-decoration: none;
843
+ }
844
+
845
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li a:hover, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li a:active, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options li a.active {
846
+ text-decoration: underline;
847
+ }
848
+
849
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content {
850
+ background-color: #ebf7f0;
851
+ border: 1px solid #c3e8d1;
852
+ border-top: none;
853
+ padding: 10px;
854
+ -moz-border-radius-bottomleft: 6px;
855
+ -webkit-border-bottom-left-radius: 6px;
856
+ -o-border-bottom-left-radius: 6px;
857
+ -ms-border-bottom-left-radius: 6px;
858
+ -khtml-border-bottom-left-radius: 6px;
859
+ border-bottom-left-radius: 6px;
860
+ -moz-border-radius-bottomright: 6px;
861
+ -webkit-border-bottom-right-radius: 6px;
862
+ -o-border-bottom-right-radius: 6px;
863
+ -ms-border-bottom-right-radius: 6px;
864
+ -khtml-border-bottom-right-radius: 6px;
865
+ border-bottom-right-radius: 6px;
866
+ margin: 0 0 20px;
867
+ }
868
+
869
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content h4 {
870
+ color: #10a54a;
871
+ font-size: 1.1em;
872
+ margin: 0;
873
+ padding: 15px 0 5px;
874
+ }
875
+
876
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content form input[type='text'].error {
877
+ outline: 2px solid black;
878
+ outline-color: #cc0000;
879
+ }
880
+
881
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header {
882
+ float: none;
883
+ clear: both;
884
+ overflow: hidden;
885
+ display: block;
886
+ }
887
+
888
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header input.submit {
889
+ display: block;
890
+ clear: none;
891
+ float: left;
892
+ padding: 6px 8px;
893
+ }
894
+
895
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header img {
896
+ display: block;
897
+ clear: none;
898
+ float: right;
899
+ }
900
+
901
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header a {
902
+ padding: 4px 0 0 10px;
903
+ color: #6fc992;
904
+ display: inline-block;
905
+ font-size: 0.9em;
906
+ }
907
+
908
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.response div.block pre {
909
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
910
+ padding: 10px;
911
+ font-size: 0.9em;
912
+ max-height: 400px;
913
+ overflow-y: auto;
914
+ }
915
+
916
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put {
917
+ float: none;
918
+ clear: both;
919
+ overflow: hidden;
920
+ display: block;
921
+ margin: 0 0 10px;
922
+ padding: 0;
923
+ }
924
+
925
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading {
926
+ float: none;
927
+ clear: both;
928
+ overflow: hidden;
929
+ display: block;
930
+ margin: 0;
931
+ padding: 0;
932
+ background-color: #f9f2e9;
933
+ border: 1px solid #f0e0ca;
934
+ }
935
+
936
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 {
937
+ display: block;
938
+ clear: none;
939
+ float: left;
940
+ width: auto;
941
+ margin: 0;
942
+ padding: 0;
943
+ line-height: 1.1em;
944
+ color: black;
945
+ }
946
+
947
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 span {
948
+ margin: 0;
949
+ padding: 0;
950
+ }
951
+
952
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 span.http_method a {
953
+ text-transform: uppercase;
954
+ background-color: #c5862b;
955
+ text-decoration: none;
956
+ color: white;
957
+ display: inline-block;
958
+ width: 50px;
959
+ font-size: 0.7em;
960
+ text-align: center;
961
+ padding: 7px 0 4px;
962
+ -moz-border-radius: 2px;
963
+ -webkit-border-radius: 2px;
964
+ -o-border-radius: 2px;
965
+ -ms-border-radius: 2px;
966
+ -khtml-border-radius: 2px;
967
+ border-radius: 2px;
968
+ }
969
+
970
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 span.path {
971
+ padding-left: 10px;
972
+ }
973
+
974
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 span.path a {
975
+ color: black;
976
+ text-decoration: none;
977
+ }
978
+
979
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 span.path a:hover {
980
+ text-decoration: underline;
981
+ }
982
+
983
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options {
984
+ overflow: hidden;
985
+ padding: 0;
986
+ display: block;
987
+ clear: none;
988
+ float: right;
989
+ margin: 6px 10px 0 0;
990
+ }
991
+
992
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li {
993
+ float: left;
994
+ clear: none;
995
+ margin: 0;
996
+ padding: 2px 10px;
997
+ border-right: 1px solid #dddddd;
998
+ }
999
+
1000
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li:first-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li.first {
1001
+ padding-left: 0;
1002
+ }
1003
+
1004
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li:last-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li.last {
1005
+ padding-right: 0;
1006
+ border-right: none;
1007
+ }
1008
+
1009
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li {
1010
+ border-right-color: #f0e0ca;
1011
+ color: #c5862b;
1012
+ font-size: 0.9em;
1013
+ }
1014
+
1015
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li a {
1016
+ color: #c5862b;
1017
+ text-decoration: none;
1018
+ }
1019
+
1020
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li a:hover, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li a:active, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options li a.active {
1021
+ text-decoration: underline;
1022
+ }
1023
+
1024
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content {
1025
+ background-color: #faf5ee;
1026
+ border: 1px solid #f0e0ca;
1027
+ border-top: none;
1028
+ padding: 10px;
1029
+ -moz-border-radius-bottomleft: 6px;
1030
+ -webkit-border-bottom-left-radius: 6px;
1031
+ -o-border-bottom-left-radius: 6px;
1032
+ -ms-border-bottom-left-radius: 6px;
1033
+ -khtml-border-bottom-left-radius: 6px;
1034
+ border-bottom-left-radius: 6px;
1035
+ -moz-border-radius-bottomright: 6px;
1036
+ -webkit-border-bottom-right-radius: 6px;
1037
+ -o-border-bottom-right-radius: 6px;
1038
+ -ms-border-bottom-right-radius: 6px;
1039
+ -khtml-border-bottom-right-radius: 6px;
1040
+ border-bottom-right-radius: 6px;
1041
+ margin: 0 0 20px;
1042
+ }
1043
+
1044
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content h4 {
1045
+ color: #c5862b;
1046
+ font-size: 1.1em;
1047
+ margin: 0;
1048
+ padding: 15px 0 5px;
1049
+ }
1050
+
1051
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content form input[type='text'].error {
1052
+ outline: 2px solid black;
1053
+ outline-color: #cc0000;
1054
+ }
1055
+
1056
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header {
1057
+ float: none;
1058
+ clear: both;
1059
+ overflow: hidden;
1060
+ display: block;
1061
+ }
1062
+
1063
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header input.submit {
1064
+ display: block;
1065
+ clear: none;
1066
+ float: left;
1067
+ padding: 6px 8px;
1068
+ }
1069
+
1070
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header img {
1071
+ display: block;
1072
+ clear: none;
1073
+ float: right;
1074
+ }
1075
+
1076
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header a {
1077
+ padding: 4px 0 0 10px;
1078
+ color: #dcb67f;
1079
+ display: inline-block;
1080
+ font-size: 0.9em;
1081
+ }
1082
+
1083
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.response div.block pre {
1084
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
1085
+ padding: 10px;
1086
+ font-size: 0.9em;
1087
+ max-height: 400px;
1088
+ overflow-y: auto;
1089
+ }
1090
+
1091
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch {
1092
+ float: none;
1093
+ clear: both;
1094
+ overflow: hidden;
1095
+ display: block;
1096
+ margin: 0 0 10px;
1097
+ padding: 0;
1098
+ }
1099
+
1100
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading {
1101
+ float: none;
1102
+ clear: both;
1103
+ overflow: hidden;
1104
+ display: block;
1105
+ margin: 0;
1106
+ padding: 0;
1107
+ background-color: #FCE9E3;
1108
+ border: 1px solid #F5D5C3;
1109
+ }
1110
+
1111
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 {
1112
+ display: block;
1113
+ clear: none;
1114
+ float: left;
1115
+ width: auto;
1116
+ margin: 0;
1117
+ padding: 0;
1118
+ line-height: 1.1em;
1119
+ color: black;
1120
+ }
1121
+
1122
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 span {
1123
+ margin: 0;
1124
+ padding: 0;
1125
+ }
1126
+
1127
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 span.http_method a {
1128
+ text-transform: uppercase;
1129
+ background-color: #D38042;
1130
+ text-decoration: none;
1131
+ color: white;
1132
+ display: inline-block;
1133
+ width: 50px;
1134
+ font-size: 0.7em;
1135
+ text-align: center;
1136
+ padding: 7px 0 4px 0;
1137
+ -moz-border-radius: 2px;
1138
+ -webkit-border-radius: 2px;
1139
+ -o-border-radius: 2px;
1140
+ -ms-border-radius: 2px;
1141
+ -khtml-border-radius: 2px;
1142
+ border-radius: 2px;
1143
+ }
1144
+
1145
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 span.path {
1146
+ padding-left: 10px;
1147
+ }
1148
+
1149
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 span.path a {
1150
+ color: black;
1151
+ text-decoration: none;
1152
+ }
1153
+
1154
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 span.path a:hover {
1155
+ text-decoration: underline;
1156
+ }
1157
+
1158
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options {
1159
+ overflow: hidden;
1160
+ padding: 0;
1161
+ display: block;
1162
+ clear: none;
1163
+ float: right;
1164
+ margin: 6px 10px 0 0;
1165
+ }
1166
+
1167
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li {
1168
+ float: left;
1169
+ clear: none;
1170
+ margin: 0;
1171
+ padding: 2px 10px;
1172
+ border-right: 1px solid #dddddd;
1173
+ }
1174
+
1175
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li:first-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li.first {
1176
+ padding-left: 0;
1177
+ }
1178
+
1179
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li:last-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li.last {
1180
+ padding-right: 0;
1181
+ border-right: none;
1182
+ }
1183
+
1184
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li {
1185
+ border-right-color: #f0cecb;
1186
+ color: #D38042;
1187
+ font-size: 0.9em;
1188
+ }
1189
+
1190
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li a {
1191
+ color: #D38042;
1192
+ text-decoration: none;
1193
+ }
1194
+
1195
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li a:hover, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li a:active, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options li a.active {
1196
+ text-decoration: underline;
1197
+ }
1198
+
1199
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content {
1200
+ background-color: #faf0ef;
1201
+ border: 1px solid #f0cecb;
1202
+ border-top: none;
1203
+ padding: 10px;
1204
+ -moz-border-radius-bottomleft: 6px;
1205
+ -webkit-border-bottom-left-radius: 6px;
1206
+ -o-border-bottom-left-radius: 6px;
1207
+ -ms-border-bottom-left-radius: 6px;
1208
+ -khtml-border-bottom-left-radius: 6px;
1209
+ border-bottom-left-radius: 6px;
1210
+ -moz-border-radius-bottomright: 6px;
1211
+ -webkit-border-bottom-right-radius: 6px;
1212
+ -o-border-bottom-right-radius: 6px;
1213
+ -ms-border-bottom-right-radius: 6px;
1214
+ -khtml-border-bottom-right-radius: 6px;
1215
+ border-bottom-right-radius: 6px;
1216
+ margin: 0 0 20px;
1217
+ }
1218
+
1219
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content h4 {
1220
+ color: #D38042;
1221
+ font-size: 1.1em;
1222
+ margin: 0;
1223
+ padding: 15px 0 5px;
1224
+ }
1225
+
1226
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content form input[type='text'].error {
1227
+ outline: 2px solid black;
1228
+ outline-color: #F5D5C3;
1229
+ }
1230
+
1231
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header {
1232
+ float: none;
1233
+ clear: both;
1234
+ overflow: hidden;
1235
+ display: block;
1236
+ }
1237
+
1238
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header input.submit {
1239
+ display: block;
1240
+ clear: none;
1241
+ float: left;
1242
+ padding: 6px 8px;
1243
+ }
1244
+
1245
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header img {
1246
+ display: block;
1247
+ clear: none;
1248
+ float: right;
1249
+ }
1250
+
1251
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header a {
1252
+ padding: 4px 0 0 10px;
1253
+ color: #dcb67f;
1254
+ display: inline-block;
1255
+ font-size: 0.9em;
1256
+ }
1257
+
1258
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.response div.block pre {
1259
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
1260
+ padding: 10px;
1261
+ font-size: 0.9em;
1262
+ max-height: 400px;
1263
+ overflow-y: auto;
1264
+ }
1265
+
1266
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head {
1267
+ float: none;
1268
+ clear: both;
1269
+ overflow: hidden;
1270
+ display: block;
1271
+ margin: 0 0 10px 0;
1272
+ padding: 0 0 0 0px;
1273
+ }
1274
+
1275
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading {
1276
+ float: none;
1277
+ clear: both;
1278
+ overflow: hidden;
1279
+ display: block;
1280
+ margin: 0 0 0 0;
1281
+ padding: 0;
1282
+ background-color: #fcffcd;
1283
+ border: 1px solid black;
1284
+ border-color: #ffd20f;
1285
+ }
1286
+
1287
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 {
1288
+ display: block;
1289
+ clear: none;
1290
+ float: left;
1291
+ width: auto;
1292
+ margin: 0;
1293
+ padding: 0;
1294
+ line-height: 1.1em;
1295
+ color: black;
1296
+ }
1297
+
1298
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 span {
1299
+ margin: 0;
1300
+ padding: 0;
1301
+ }
1302
+
1303
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 span.http_method a {
1304
+ text-transform: uppercase;
1305
+ background-color: #ffd20f;
1306
+ text-decoration: none;
1307
+ color: white;
1308
+ display: inline-block;
1309
+ width: 50px;
1310
+ font-size: 0.7em;
1311
+ text-align: center;
1312
+ padding: 7px 0 4px 0;
1313
+ -moz-border-radius: 2px;
1314
+ -webkit-border-radius: 2px;
1315
+ -o-border-radius: 2px;
1316
+ -ms-border-radius: 2px;
1317
+ -khtml-border-radius: 2px;
1318
+ border-radius: 2px;
1319
+ }
1320
+
1321
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 span.path {
1322
+ padding-left: 10px;
1323
+ }
1324
+
1325
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 span.path a {
1326
+ color: black;
1327
+ text-decoration: none;
1328
+ }
1329
+
1330
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading h3 span.path a:hover {
1331
+ text-decoration: underline;
1332
+ }
1333
+
1334
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options {
1335
+ float: none;
1336
+ clear: both;
1337
+ overflow: hidden;
1338
+ margin: 0;
1339
+ padding: 0;
1340
+ display: block;
1341
+ clear: none;
1342
+ float: right;
1343
+ margin: 6px 10px 0 0;
1344
+ }
1345
+
1346
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li {
1347
+ float: left;
1348
+ clear: none;
1349
+ margin: 0;
1350
+ padding: 2px 10px;
1351
+ border-right: 1px solid #dddddd;
1352
+ }
1353
+
1354
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li:first-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li.first {
1355
+ padding-left: 0;
1356
+ }
1357
+
1358
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li:last-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li.last {
1359
+ padding-right: 0;
1360
+ border-right: none;
1361
+ }
1362
+
1363
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li {
1364
+ border-right-color: #ffd20f;
1365
+ color: #ffd20f;
1366
+ font-size: 0.9em;
1367
+ }
1368
+
1369
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li a {
1370
+ color: #ffd20f;
1371
+ text-decoration: none;
1372
+ }
1373
+
1374
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li a:hover, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li a:active, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.heading ul.options li a.active {
1375
+ text-decoration: underline;
1376
+ }
1377
+
1378
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content {
1379
+ background-color: #fcffcd;
1380
+ border: 1px solid black;
1381
+ border-color: #ffd20f;
1382
+ border-top: none;
1383
+ padding: 10px;
1384
+ -moz-border-radius-bottomleft: 6px;
1385
+ -webkit-border-bottom-left-radius: 6px;
1386
+ -o-border-bottom-left-radius: 6px;
1387
+ -ms-border-bottom-left-radius: 6px;
1388
+ -khtml-border-bottom-left-radius: 6px;
1389
+ border-bottom-left-radius: 6px;
1390
+ -moz-border-radius-bottomright: 6px;
1391
+ -webkit-border-bottom-right-radius: 6px;
1392
+ -o-border-bottom-right-radius: 6px;
1393
+ -ms-border-bottom-right-radius: 6px;
1394
+ -khtml-border-bottom-right-radius: 6px;
1395
+ border-bottom-right-radius: 6px;
1396
+ margin: 0 0 20px 0;
1397
+ }
1398
+
1399
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content h4 {
1400
+ color: #ffd20f;
1401
+ font-size: 1.1em;
1402
+ margin: 0;
1403
+ padding: 15px 0 5px 0px;
1404
+ }
1405
+
1406
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content form input[type='text'].error {
1407
+ outline: 2px solid black;
1408
+ outline-color: #cc0000;
1409
+ }
1410
+
1411
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.sandbox_header {
1412
+ float: none;
1413
+ clear: both;
1414
+ overflow: hidden;
1415
+ display: block;
1416
+ }
1417
+
1418
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.sandbox_header input.submit {
1419
+ display: block;
1420
+ clear: none;
1421
+ float: left;
1422
+ padding: 6px 8px;
1423
+ }
1424
+
1425
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.sandbox_header img {
1426
+ display: block;
1427
+ display: block;
1428
+ clear: none;
1429
+ float: right;
1430
+ }
1431
+
1432
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.sandbox_header a {
1433
+ padding: 4px 0 0 10px;
1434
+ color: #6fc992;
1435
+ display: inline-block;
1436
+ font-size: 0.9em;
1437
+ }
1438
+
1439
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.response div.block {
1440
+ background-color: #fcf6db;
1441
+ border: 1px solid black;
1442
+ border-color: #e5e0c6;
1443
+ }
1444
+
1445
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.head div.content div.response div.block pre {
1446
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
1447
+ padding: 10px;
1448
+ font-size: 0.9em;
1449
+ max-height: 400px;
1450
+ overflow-y: auto;
1451
+ }
1452
+
1453
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete {
1454
+ float: none;
1455
+ clear: both;
1456
+ overflow: hidden;
1457
+ display: block;
1458
+ margin: 0 0 10px;
1459
+ padding: 0;
1460
+ }
1461
+
1462
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading {
1463
+ float: none;
1464
+ clear: both;
1465
+ overflow: hidden;
1466
+ display: block;
1467
+ margin: 0;
1468
+ padding: 0;
1469
+ background-color: #f5e8e8;
1470
+ border: 1px solid #e8c6c7;
1471
+ }
1472
+
1473
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 {
1474
+ display: block;
1475
+ clear: none;
1476
+ float: left;
1477
+ width: auto;
1478
+ margin: 0;
1479
+ padding: 0;
1480
+ line-height: 1.1em;
1481
+ color: black;
1482
+ }
1483
+
1484
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 span {
1485
+ margin: 0;
1486
+ padding: 0;
1487
+ }
1488
+
1489
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 span.http_method a {
1490
+ text-transform: uppercase;
1491
+ background-color: #a41e22;
1492
+ text-decoration: none;
1493
+ color: white;
1494
+ display: inline-block;
1495
+ width: 50px;
1496
+ font-size: 0.7em;
1497
+ text-align: center;
1498
+ padding: 7px 0 4px 0;
1499
+ -moz-border-radius: 2px;
1500
+ -webkit-border-radius: 2px;
1501
+ -o-border-radius: 2px;
1502
+ -ms-border-radius: 2px;
1503
+ -khtml-border-radius: 2px;
1504
+ border-radius: 2px;
1505
+ }
1506
+
1507
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 span.path {
1508
+ padding-left: 10px;
1509
+ }
1510
+
1511
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 span.path a {
1512
+ color: black;
1513
+ text-decoration: none;
1514
+ }
1515
+
1516
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 span.path a:hover {
1517
+ text-decoration: underline;
1518
+ }
1519
+
1520
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options {
1521
+ overflow: hidden;
1522
+ padding: 0;
1523
+ display: block;
1524
+ clear: none;
1525
+ float: right;
1526
+ margin: 6px 10px 0 0;
1527
+ }
1528
+
1529
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li {
1530
+ float: left;
1531
+ clear: none;
1532
+ margin: 0;
1533
+ padding: 2px 10px;
1534
+ border-right: 1px solid #dddddd;
1535
+ }
1536
+
1537
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li:first-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li.first {
1538
+ padding-left: 0;
1539
+ }
1540
+
1541
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li:last-child, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li.last {
1542
+ padding-right: 0;
1543
+ border-right: none;
1544
+ }
1545
+
1546
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li {
1547
+ border-right-color: #e8c6c7;
1548
+ color: #a41e22;
1549
+ font-size: 0.9em;
1550
+ }
1551
+
1552
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li a {
1553
+ color: #a41e22;
1554
+ text-decoration: none;
1555
+ }
1556
+
1557
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li a:hover, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li a:active, body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options li a.active {
1558
+ text-decoration: underline;
1559
+ }
1560
+
1561
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content {
1562
+ background-color: #f7eded;
1563
+ border: 1px solid #e8c6c7;
1564
+ border-top: none;
1565
+ padding: 10px;
1566
+ -moz-border-radius-bottomleft: 6px;
1567
+ -webkit-border-bottom-left-radius: 6px;
1568
+ -o-border-bottom-left-radius: 6px;
1569
+ -ms-border-bottom-left-radius: 6px;
1570
+ -khtml-border-bottom-left-radius: 6px;
1571
+ border-bottom-left-radius: 6px;
1572
+ -moz-border-radius-bottomright: 6px;
1573
+ -webkit-border-bottom-right-radius: 6px;
1574
+ -o-border-bottom-right-radius: 6px;
1575
+ -ms-border-bottom-right-radius: 6px;
1576
+ -khtml-border-bottom-right-radius: 6px;
1577
+ border-bottom-right-radius: 6px;
1578
+ margin: 0 0 20px 0;
1579
+ }
1580
+
1581
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content h4 {
1582
+ color: #a41e22;
1583
+ font-size: 1.1em;
1584
+ margin: 0;
1585
+ padding: 15px 0 5px;
1586
+ }
1587
+
1588
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content form input[type='text'].error {
1589
+ outline: 2px solid black;
1590
+ outline-color: #cc0000;
1591
+ }
1592
+
1593
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header {
1594
+ float: none;
1595
+ clear: both;
1596
+ overflow: hidden;
1597
+ display: block;
1598
+ }
1599
+
1600
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header input.submit {
1601
+ display: block;
1602
+ clear: none;
1603
+ float: left;
1604
+ padding: 6px 8px;
1605
+ }
1606
+
1607
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header img {
1608
+ display: block;
1609
+ clear: none;
1610
+ float: right;
1611
+ }
1612
+
1613
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header a {
1614
+ padding: 4px 0 0 10px;
1615
+ color: #c8787a;
1616
+ display: inline-block;
1617
+ font-size: 0.9em;
1618
+ }
1619
+
1620
+ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.response div.block pre {
1621
+ font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
1622
+ padding: 10px;
1623
+ font-size: 0.9em;
1624
+ max-height: 400px;
1625
+ overflow-y: auto;
1626
+ }
1627
+
1628
+
1629
+ .model-signature {
1630
+ font-family: "Droid Sans", sans-serif;
1631
+ font-size: 1em;
1632
+ line-height: 1.5em;
1633
+ }
1634
+
1635
+ .model-signature .description div {
1636
+ font-size: 0.9em;
1637
+ line-height: 1.5em;
1638
+ margin-left: 1em;
1639
+ }
1640
+
1641
+ .model-signature .description .strong {
1642
+ font-weight: bold;
1643
+ color: #000;
1644
+ font-size: .9em;
1645
+ }
1646
+
1647
+ .model-signature .description .stronger {
1648
+ font-weight: bold;
1649
+ color: #000;
1650
+ }
1651
+
1652
+ .model-signature .signature-nav a {
1653
+ text-decoration: none;
1654
+ color: #AAA;
1655
+ }
1656
+
1657
+ .model-signature pre {
1658
+ font-size: .85em;
1659
+ line-height: 1.2em;
1660
+ overflow: auto;
1661
+ max-height: 200px;
1662
+ cursor: pointer;
1663
+ }
1664
+
1665
+ .model-signature pre:hover {
1666
+ background-color: #ffffdd;
1667
+ }
1668
+
1669
+ .model-signature .snippet small {
1670
+ font-size: 0.75em;
1671
+ }
1672
+
1673
+ .model-signature .signature-container {
1674
+ clear: both;
1675
+ }
1676
+
1677
+ .model-signature .signature-nav a:hover {
1678
+ text-decoration: underline;
1679
+ color: black;
1680
+ }
1681
+
1682
+ .model-signature .signature-nav .selected {
1683
+ color: black;
1684
+ text-decoration: none;
1685
+ }
1686
+
1687
+ .model-signature ul.signature-nav {
1688
+ display: block;
1689
+ margin: 0;
1690
+ padding: 0;
1691
+ }
1692
+
1693
+ .model-signature ul.signature-nav li {
1694
+ float: left;
1695
+ margin: 0 5px 5px 0;
1696
+ padding: 2px 5px 2px 0;
1697
+ border-right: 1px solid #ddd;
1698
+ }
1699
+
1700
+ .model-signature ul.signature-nav li:last-child {
1701
+ padding-right: 0;
1702
+ border-right: none;
1703
+ }
1704
+
1705
+ .model-signature .propName {
1706
+ font-weight: bold;
1707
+ }
1708
+ .model-signature .propType {
1709
+ color: #5555aa;
1710
+ }
1711
+ .model-signature .propOptKey {
1712
+ font-style: italic;
1713
+ }
1714
+ .model-signature .propOpt {
1715
+ color: #555;
1716
+ }
1717
+
1718
+ pre code {
1719
+ background: none;
1720
+ }
1721
+
1722
+ .content pre {
1723
+ font-size: 12px;
1724
+ margin-top: 5px;
1725
+ padding: 5px;
1726
+ }
1727
+
1728
+ .content > .content-type > div > label {
1729
+ clear: both;
1730
+ display: block;
1731
+ color: #0F6AB4;
1732
+ font-size: 1.1em;
1733
+ margin: 0;
1734
+ padding: 15px 0 5px;
1735
+ }
1736
+
1737
+ .swagger-ui-wrap {
1738
+ max-width: 960px;
1739
+ margin-left: auto;
1740
+ margin-right: auto;
1741
+ }
1742
+
1743
+ .icon-btn {
1744
+ cursor: pointer;
1745
+ }
1746
+
1747
+ #message-bar {
1748
+ min-height: 30px;
1749
+ text-align: center;
1750
+ padding-top: 10px;
1751
+ }
1752
+
1753
+ .message-success {
1754
+ color: #89BF04;
1755
+ }
1756
+
1757
+ .message-fail {
1758
+ color: #cc0000;
1759
+ }