Updated sample discovery URL.
This commit is contained in:
@@ -159,7 +159,7 @@
|
|||||||
</script>
|
</script>
|
||||||
<div id='content_message'>
|
<div id='content_message'>
|
||||||
Enter the base URL of the API that you wish to explore, or try
|
Enter the base URL of the API that you wish to explore, or try
|
||||||
<a onclick="$('#input_baseUrl').val('http://petstore.swagger.wordnik.com/api'); apiSelectionController.showApi(); return false;" href="#">petstore.swagger.wordnik.com/api</a>
|
<a onclick="$('#input_baseUrl').val('http://petstore.swagger.wordnik.com/api/resources.json'); apiSelectionController.showApi(); return false;" href="#">petstore.swagger.wordnik.com/api/resources.json</a>
|
||||||
</div>
|
</div>
|
||||||
<p id='colophon' style='display:none'>
|
<p id='colophon' style='display:none'>
|
||||||
Sexy API documentation from
|
Sexy API documentation from
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
|
|
||||||
// this.baseUrl = "http://swagr.api.wordnik.com/v4";
|
// this.baseUrl = "http://petstore.swagger.wordnik.com/api/resources.json";
|
||||||
|
|
||||||
// this.baseUrl = "http://petstore.swagger.wordnik.com/api";
|
|
||||||
// this.apiKey = "special-key";
|
// this.apiKey = "special-key";
|
||||||
|
|
||||||
var ApiSelectionController = Spine.Controller.create({
|
var ApiSelectionController = Spine.Controller.create({
|
||||||
@@ -37,15 +35,17 @@ jQuery(function($) {
|
|||||||
|
|
||||||
handleEnter: function(){
|
handleEnter: function(){
|
||||||
var self = this;
|
var self = this;
|
||||||
var submit = function() { self.showApi() }
|
var submit = function() {
|
||||||
|
self.showApi();
|
||||||
|
};
|
||||||
$('#input_baseUrl').keydown(function(e) {
|
$('#input_baseUrl').keydown(function(e) {
|
||||||
if(e.which != 13) return;
|
if(e.which != 13) return;
|
||||||
submit();
|
submit();
|
||||||
})
|
});
|
||||||
$('#input_apiKey').keydown(function(e) {
|
$('#input_apiKey').keydown(function(e) {
|
||||||
if(e.which != 13) return;
|
if(e.which != 13) return;
|
||||||
submit();
|
submit();
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
adaptToScale: function() {
|
adaptToScale: function() {
|
||||||
@@ -145,7 +145,6 @@ jQuery(function($) {
|
|||||||
// Create convenience references to Spine models
|
// Create convenience references to Spine models
|
||||||
this.ApiResource = swaggerService.ApiResource();
|
this.ApiResource = swaggerService.ApiResource();
|
||||||
|
|
||||||
debugger;
|
|
||||||
this.ApiResource.bind("refresh", this.addAll);
|
this.ApiResource.bind("refresh", this.addAll);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
|
|
||||||
// this.baseUrl = "http://swagr.api.wordnik.com/v4";
|
// this.baseUrl = "http://petstore.swagger.wordnik.com/api/resources.json";
|
||||||
|
|
||||||
// this.baseUrl = "http://petstore.swagger.wordnik.com/api";
|
|
||||||
// this.apiKey = "special-key";
|
// this.apiKey = "special-key";
|
||||||
|
|
||||||
var ApiSelectionController = Spine.Controller.create({
|
var ApiSelectionController = Spine.Controller.create({
|
||||||
@@ -37,15 +35,17 @@ jQuery(function($) {
|
|||||||
|
|
||||||
handleEnter: function(){
|
handleEnter: function(){
|
||||||
var self = this;
|
var self = this;
|
||||||
var submit = function() { self.showApi() }
|
var submit = function() {
|
||||||
|
self.showApi();
|
||||||
|
};
|
||||||
$('#input_baseUrl').keydown(function(e) {
|
$('#input_baseUrl').keydown(function(e) {
|
||||||
if(e.which != 13) return;
|
if(e.which != 13) return;
|
||||||
submit();
|
submit();
|
||||||
})
|
});
|
||||||
$('#input_apiKey').keydown(function(e) {
|
$('#input_apiKey').keydown(function(e) {
|
||||||
if(e.which != 13) return;
|
if(e.which != 13) return;
|
||||||
submit();
|
submit();
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
adaptToScale: function() {
|
adaptToScale: function() {
|
||||||
@@ -145,7 +145,6 @@ jQuery(function($) {
|
|||||||
// Create convenience references to Spine models
|
// Create convenience references to Spine models
|
||||||
this.ApiResource = swaggerService.ApiResource();
|
this.ApiResource = swaggerService.ApiResource();
|
||||||
|
|
||||||
debugger;
|
|
||||||
this.ApiResource.bind("refresh", this.addAll);
|
this.ApiResource.bind("refresh", this.addAll);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
#content_message
|
#content_message
|
||||||
Enter the base URL of the API that you wish to explore, or try
|
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'}
|
%p#colophon{:style => 'display:none'}
|
||||||
Sexy API documentation from
|
Sexy API documentation from
|
||||||
|
|||||||
Reference in New Issue
Block a user