diff --git a/build/index.html b/build/index.html index 770d5b06..6c673534 100644 --- a/build/index.html +++ b/build/index.html @@ -159,7 +159,7 @@
Sexy API documentation from diff --git a/build/javascripts/swagger-ui.js b/build/javascripts/swagger-ui.js index c8f6acff..0f4e557f 100644 --- a/build/javascripts/swagger-ui.js +++ b/build/javascripts/swagger-ui.js @@ -1,8 +1,6 @@ jQuery(function($) { - // this.baseUrl = "http://swagr.api.wordnik.com/v4"; - - // this.baseUrl = "http://petstore.swagger.wordnik.com/api"; + // this.baseUrl = "http://petstore.swagger.wordnik.com/api/resources.json"; // this.apiKey = "special-key"; var ApiSelectionController = Spine.Controller.create({ @@ -37,15 +35,17 @@ jQuery(function($) { handleEnter: function(){ var self = this; - var submit = function() { self.showApi() } + var submit = function() { + self.showApi(); + }; $('#input_baseUrl').keydown(function(e) { if(e.which != 13) return; submit(); - }) + }); $('#input_apiKey').keydown(function(e) { if(e.which != 13) return; submit(); - }) + }); }, adaptToScale: function() { @@ -145,7 +145,6 @@ jQuery(function($) { // Create convenience references to Spine models this.ApiResource = swaggerService.ApiResource(); - debugger; this.ApiResource.bind("refresh", this.addAll); }, diff --git a/source/javascripts/swagger-ui.js b/source/javascripts/swagger-ui.js index c8f6acff..0f4e557f 100644 --- a/source/javascripts/swagger-ui.js +++ b/source/javascripts/swagger-ui.js @@ -1,8 +1,6 @@ jQuery(function($) { - // this.baseUrl = "http://swagr.api.wordnik.com/v4"; - - // this.baseUrl = "http://petstore.swagger.wordnik.com/api"; + // this.baseUrl = "http://petstore.swagger.wordnik.com/api/resources.json"; // this.apiKey = "special-key"; var ApiSelectionController = Spine.Controller.create({ @@ -37,15 +35,17 @@ jQuery(function($) { handleEnter: function(){ var self = this; - var submit = function() { self.showApi() } + var submit = function() { + self.showApi(); + }; $('#input_baseUrl').keydown(function(e) { if(e.which != 13) return; submit(); - }) + }); $('#input_apiKey').keydown(function(e) { if(e.which != 13) return; submit(); - }) + }); }, adaptToScale: function() { @@ -145,7 +145,6 @@ jQuery(function($) { // Create convenience references to Spine models this.ApiResource = swaggerService.ApiResource(); - debugger; this.ApiResource.bind("refresh", this.addAll); }, diff --git a/source/layout.haml b/source/layout.haml index 501f5b62..4d571a81 100644 --- a/source/layout.haml +++ b/source/layout.haml @@ -29,7 +29,7 @@ #content_message Enter the base URL of the API that you wish to explore, or try - = link_to("petstore.swagger.wordnik.com/api", "#", :onclick => "$('#input_baseUrl').val('http://petstore.swagger.wordnik.com/api'); apiSelectionController.showApi(); return false;") + = link_to("petstore.swagger.wordnik.com/api/resources.json", "#", :onclick => "$('#input_baseUrl').val('http://petstore.swagger.wordnik.com/api/resources.json'); apiSelectionController.showApi(); return false;") %p#colophon{:style => 'display:none'} Sexy API documentation from