cleaned up page, parameterized base url
This commit is contained in:
@@ -43,10 +43,8 @@
|
||||
|
||||
</ul>
|
||||
<p>
|
||||
The latest API base URL is
|
||||
<span class='code'>
|
||||
http://api.wordnik.com/v4
|
||||
</span>
|
||||
<br>The latest API base URL is
|
||||
<span id="api_host_url" class='code'></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -55,15 +53,10 @@ http://api.wordnik.com/v4
|
||||
<div id='footer'>
|
||||
<div class='container'>
|
||||
<ul>
|
||||
<li><a href="http://www.wordnik.com" class="strong">wordnik.com</a></li>
|
||||
<li><a href="http://twitter.com/wordnik">@wordnik</a></li>
|
||||
<li><a href="http://swagger.wordnik.com" class="strong">swagger.wordnik.com</a></li>
|
||||
<li><a href="http://twitter.com/wordnikapi">@wordnikapi</a></li>
|
||||
<li><a href="http://github.com/wordnik">github.com/wordnik</a></li>
|
||||
<li><a href="irc://irc.freenode.net/wordnik">#wordnik on IRC</a></li>
|
||||
<li><a href="http://www.wordnik.com/about">about</a></li>
|
||||
<li><a href="http://smartwords.wordnik.com/">smartwords</a></li>
|
||||
<li><a href="http://blog.wordnik.com">blog</a></li>
|
||||
<li><a href="/terms">terms</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
jQuery(function($) {
|
||||
// create and initialize SwaggerService
|
||||
var swaggerService = new SwaggerService("http://swagr.api.wordnik.com/v4");
|
||||
var hostUrl = "http://swagr.api.wordnik.com/v4";
|
||||
|
||||
$("#api_host_url").html(hostUrl);
|
||||
var swaggerService = new SwaggerService(hostUrl);
|
||||
swaggerService.init();
|
||||
|
||||
// Create convenience references to Spine models
|
||||
|
||||
Reference in New Issue
Block a user