Moved Ayush's code to /legacy
This commit is contained in:
@@ -1,205 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
|
||||
<title>Wordnik Developer</title>
|
||||
<title>Swagger Api Explorer</title>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<link rel="shortcut icon" type="image/png" href="images/favicon.png">
|
||||
|
||||
<link rel="stylesheet" type="text/css" media="screen"
|
||||
href="style/smoothness/jquery-ui-1.8.14.custom.min.css">
|
||||
|
||||
<link href="style/app.ext.min.css" media="screen, projection" rel="stylesheet" type="text/css"/>
|
||||
<!--<link href="style/app.min.css" media="screen, projection" rel="stylesheet" type="text/css"/>-->
|
||||
<link rel="stylesheet" media="screen" href="style/main.css">
|
||||
|
||||
<script src="javascript/app.ext.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
<script src="javascript/swagger-service.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="javascript/swagger-ui.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id='header'>
|
||||
<div class='container'>
|
||||
<h1 id='logo'>
|
||||
<a href="/"><span>api</span><span class="light"> explorer</span></a>
|
||||
</h1>
|
||||
|
||||
<ul id='nav'>
|
||||
<li class="first odd"><input id="input_baseUrl" class="header-input" type="text" style="width: 400px" placeholder="http://awesome-api.com/rest/list.json"></li>
|
||||
<li class="even"><input id="input_apiKey" class="header-input" type="text" style="width: 200px" placeholder="(api key)"></li>
|
||||
<li class="last odd" id="button_explore"><a href="#" class="active">Explore</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id='content'>
|
||||
<div id="resources_container" class='container'>
|
||||
<div class='fullwidth_column'>
|
||||
<div class='heading_with_menu'>
|
||||
<h1>
|
||||
You know my methods. Apply them.
|
||||
</h1>
|
||||
|
||||
</div>
|
||||
|
||||
<ul id="resources" class='resources'>
|
||||
|
||||
</ul>
|
||||
<p>
|
||||
<br>API base URL is
|
||||
<span id="api_host_url" class='code'></span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="content_message" class='container'>
|
||||
</div>
|
||||
</div>
|
||||
<div id='footer'>
|
||||
<div class='container'>
|
||||
<ul>
|
||||
<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>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script id="resourceTemplate" type="text/x-jquery-tmpl">
|
||||
<li class='resource' id='resource_${name}'>
|
||||
<div class='heading'>
|
||||
<h2>
|
||||
<a href="#!/${name}" onclick="Docs.toggleEndpointListForResource('${name}');">/${name}</a>
|
||||
</h2>
|
||||
<ul class='options'>
|
||||
<li><a href="#!/${name}" id="endpointListTogger_${name}"
|
||||
onclick="Docs.toggleEndpointListForResource('${name}');">Show/Hide</a></li>
|
||||
<li><a href="#" onclick="Docs.collapseOperationsForResource('${name}'); return false;">List
|
||||
Operations</a></li>
|
||||
<li><a href="#" onclick="Docs.expandOperationsForResource('${name}'); return false;">Expand
|
||||
Operations</a></li>
|
||||
<li><a href="${baseUrl}${path_json}">Raw</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<ul class='endpoints' id='${name}_endpoint_list' style='display:none'>
|
||||
</ul>
|
||||
</li>
|
||||
</script>
|
||||
|
||||
<script id="apiTemplate" type="text/x-jquery-tmpl">
|
||||
<li class='endpoint'>
|
||||
<ul id='${name}_endpoint_operations' class='operations'>
|
||||
</ul>
|
||||
</li>
|
||||
</script>
|
||||
|
||||
<script id="operationTemplate" type="text/x-jquery-tmpl">
|
||||
<li class='${httpMethodLowercase} operation' id='${apiName}_${nickname}_${httpMethod}'>
|
||||
<div class='heading'>
|
||||
<h3>
|
||||
<span class='http_method'><a href="#!/${apiName}/${nickname}_${httpMethod}"
|
||||
onclick="Docs.toggleOperationContent('${apiName}_${nickname}_${httpMethod}_content');">${httpMethod}</a></span>
|
||||
<span class='path'><a href="#!/${apiName}/${nickname}_${httpMethod}"
|
||||
onclick="Docs.toggleOperationContent('${apiName}_${nickname}_${httpMethod}_content');">${path_json}</a></span>
|
||||
</h3>
|
||||
<ul class='options'>
|
||||
<li><a href="#!/${apiName}/${nickname}_${httpMethod}"
|
||||
onclick="Docs.toggleOperationContent('${apiName}_${nickname}_${httpMethod}_content');">${summary}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class='content' id='${apiName}_${nickname}_${httpMethod}_content' style='display:none'>
|
||||
{{if notes}}
|
||||
<h4>Implementation Notes</h4>
|
||||
<p>${notes}</p>
|
||||
{{/if}}
|
||||
<form id="${apiName}_${nickname}_${httpMethod}_form" accept-charset="UTF-8" action="#" class="sandbox" method="post">
|
||||
<div style="margin:0;padding:0;display:inline"></div>
|
||||
<h4>Parameters</h4>
|
||||
<table class='fullwidth'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Parameter</th>
|
||||
<th id="${apiName}_${nickname}_${httpMethod}_value_header">Value</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="${apiName}_${nickname}_${httpMethod}_params">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class='sandbox_header' id='${apiName}_${nickname}_${httpMethod}_content_sandbox_response_header'>
|
||||
<input class="submit" id="${apiName}_${nickname}_${httpMethod}_content_sandbox_response_button" name="commit"
|
||||
type="button" value="Try it out!"/>
|
||||
<a href="#" id="${apiName}_${nickname}_${httpMethod}_content_sandbox_response_hider"
|
||||
onclick="$('#${apiName}_${nickname}_${httpMethod}_content_sandbox_response').slideUp();$(this).fadeOut(); return false;"
|
||||
style="display:none">Hide Response</a>
|
||||
<img alt="Throbber" id="${apiName}_${nickname}_${httpMethod}_content_sandbox_response_throbber"
|
||||
src="images/throbber.gif" style="display:none"/>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class='response' id='${apiName}_${nickname}_${httpMethod}_content_sandbox_response' style='display:none'>
|
||||
<h4>Request URL</h4>
|
||||
<div class='block request_url'></div>
|
||||
|
||||
<h4>Response Body</h4>
|
||||
<div class='block response_body'></div>
|
||||
|
||||
<h4>Response Code</h4>
|
||||
<div class='block response_code'></div>
|
||||
|
||||
<h4>Response Headers</h4>
|
||||
<div class='block response_headers'></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</script>
|
||||
|
||||
|
||||
<script id="paramTemplateRequired" type="text/x-jquery-tmpl">
|
||||
<tr>
|
||||
<td class='code required'>${name}</td>
|
||||
<td><input name="${name}" class="required" minlength="1" placeholder="(required)" type="text" value=""/></td>
|
||||
<td width='500'><strong>${description}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script id="paramTemplate" type="text/x-jquery-tmpl">
|
||||
<tr>
|
||||
<td class='code'>${name}</td>
|
||||
<td><input name="${name}" class="" minlength="0" placeholder="" type="text" value=""/></td>
|
||||
<td width='500'>${description}</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script id="paramTemplateRequiredReadOnly" type="text/x-jquery-tmpl">
|
||||
<tr>
|
||||
<td class='code required'>${name}</td>
|
||||
<td>-</td>
|
||||
<td width='500'><strong>${description}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
<script id="paramTemplateReadOnly" type="text/x-jquery-tmpl">
|
||||
<tr>
|
||||
<td class='code'>${name}</td>
|
||||
<td>-</td>
|
||||
<td width='500'>${description}</td>
|
||||
</tr>
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user