<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Vegas API Documentor">
<title>API Documentation</title>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/default.min.css">
<style>
body{padding-top:50px}.sub-header{padding-bottom:10px;border-bottom:1px solid #eee}.navbar-fixed-top{border:0}.sidebar{display:none}@media (min-width:768px){.sidebar{position:fixed;top:51px;bottom:0;left:0;z-index:1000;display:block;padding:20px;overflow-x:hidden;overflow-y:auto;background-color:#f5f5f5;border-right:1px solid #eee}}.nav-sidebar{margin-right:-21px;margin-bottom:20px;margin-left:-20px}.nav-sidebar>li>a{padding-right:20px;padding-left:20px}.nav-sidebar>.active>a,.nav-sidebar>.active>a:focus,.nav-sidebar>.active>a:hover{color:#fff;background-color:#428bca}.main{padding:20px}@media (min-width:768px){.main{padding-right:40px;padding-left:40px}}.main .page-header{margin-top:0}.placeholders{margin-bottom:30px;text-align:center}.placeholders h4{margin-bottom:0}.placeholder{margin-bottom:20px}.placeholder img{display:inline-block;border-radius:50%}.footer{position:fixed;bottom:0;width:100%;height:60px;background-color:#f5f5f5}body>.container{padding:60px 15px 0}.container .text-muted{margin:20px 0}.main{margin-bottom:45px}.footer>.container{padding-right:15px;padding-left:15px}
</style>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">API Documentation</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<form class="navbar-form navbar-right">
<input type="text" id="search-api-phrase" class="form-control" placeholder="Search...">
</form>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-md-2 sidebar">
<ul class="nav nav-sidebar">
<li>
<a href="#section-nested">Nested</a>
</li>
<li>
<a href="#section-test">Test</a>
</li>
<li>
<a href="#section-foo">Foo</a>
</li>
</ul> </div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<div class="container-fluid">
<div class="row hide" id="search-not-found">
<div class="alert alert-warning">
Nothing found...
</div>
</div>
<div class="row">
<div class="col-lg-12" id="section-nested">
<div class="panel-group" data-toggle="collapse" id="accordion-nested" role="tablist" aria-multiselectable="true">
<div class="panel panel-primary">
<div class="panel-heading" role="tab">
<h3 class="panel-title title-primary">
<a data-toggle="collapse"
data-parent="#accordion-nested"
href="#nested"
aria-expanded="true"
aria-controls="nested">
Nested <span class="badge pull-right">1.0.0</span>
</a>
</h3>
</div>
<div id="nested" class="panel-collapse collapse in" role="tabpanel">
<div class="panel-body">
<p class="lead">Nested API</p>
<hr />
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
data-parent="#accordion-nested"
href="#nested-get-nested-object"
aria-expanded="true"
aria-controls="nested">
<span class="label label-success">GET</span> Get nested object </a>
</h4>
</div>
<div id="nested-get-nested-object"
class="panel-collapse collapse in"
role="tabpanel">
<div class="panel-body">
<p class="lead">Nested</p>
<pre>HTTP Method: <span class="label label-success"><h5 style="display:inline;">GET</h5></span></pre>
<pre>URL: <h5 style="display:inline;"><span class="label label-default">/api/nested/{id}</span></h5></pre>
<h4>Parameters</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>id</code></td>
<td><i>string</i></td>
<td>Nested ID</td>
</tr>
</table>
<h4>Errors</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><span class="label label-warning">404</span></td>
<td>Error</td>
<td>Record not found</td>
</tr>
<tr>
<td><span class="label label-danger">500</span></td>
<td>Error</td>
<td>Application error</td>
</tr>
</table>
<div class="clearfix"></div>
<h3>Request</h3>
<h4>Headers</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><code>HTTP_X_AUTH</code></td>
<td>Authentication token</td>
</tr>
</table>
<div class="clearfix"></div>
<h3>Response</h3>
<pre>Content-Type: <span class="label label-primary"><h5 style="display:inline;">application/json</h5></span></pre>
<h4>Body</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>id</code></td>
<td><i>MongoId</i></td>
<td>Nested ID</td>
</tr>
<tr>
<td><code>name</code></td>
<td><i>string</i></td>
<td>Nested name</td>
</tr>
</table>
<h4>Response body example</h4>
<pre><code class="json">{
"id": "456",
"name": "Nested"
}</code></pre>
</div>
</div>
</div> <div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
data-parent="#accordion-nested"
href="#nested-get-list-of-nested"
aria-expanded="true"
aria-controls="nested">
<span class="label label-success">GET</span> Get list of nested </a>
</h4>
</div>
<div id="nested-get-list-of-nested"
class="panel-collapse collapse in"
role="tabpanel">
<div class="panel-body">
<p class="lead">Nested list</p>
<pre>HTTP Method: <span class="label label-success"><h5 style="display:inline;">GET</h5></span></pre>
<pre>URL: <h5 style="display:inline;"><span class="label label-default">/api/nested</span></h5></pre>
<h4>Errors</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><span class="label label-danger">500</span></td>
<td>Error</td>
<td>Application error</td>
</tr>
</table>
<div class="clearfix"></div>
<h3>Request</h3>
<h4>Headers</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><code>HTTP_X_AUTH</code></td>
<td>Authentication token</td>
</tr>
</table>
<div class="clearfix"></div>
<h3>Response</h3>
<pre>Content-Type: <span class="label label-primary"><h5 style="display:inline;">application/json</h5></span></pre>
<h4>Body</h4>
<table class="table table-bordered table-hover">
<tr>
<td>
<table class="table table-bordered">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>id</code></td>
<td><i>MongoId</i></td>
<td>Nested ID</td>
</tr>
<tr>
<td><code>name</code></td>
<td><i>string</i></td>
<td>Nested name</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table class="table table-bordered">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>id</code></td>
<td><i>MongoId</i></td>
<td>Nested ID</td>
</tr>
<tr>
<td><code>name</code></td>
<td><i>string</i></td>
<td>Nested name</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>...</td>
</tr>
</table>
<h4>Response body example</h4>
<pre><code class="json">[
{
"id": "456",
"name": "Nested 1"
},
{
"id": "567",
"name": "Nested 2"
}
]</code></pre>
</div>
</div>
</div> </div>
</div>
</div>
</div>
</div></div> <div class="row">
<div class="col-lg-12" id="section-test">
<div class="panel-group" data-toggle="collapse" id="accordion-test" role="tablist" aria-multiselectable="true">
<div class="panel panel-primary">
<div class="panel-heading" role="tab">
<h3 class="panel-title title-primary">
<a data-toggle="collapse"
data-parent="#accordion-test"
href="#test"
aria-expanded="true"
aria-controls="test">
Test <span class="badge pull-right">1.0.0</span>
</a>
</h3>
</div>
<div id="test" class="panel-collapse collapse in" role="tabpanel">
<div class="panel-body">
<p class="lead">Test API</p>
<hr />
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
data-parent="#accordion-test"
href="#test-get-test-object"
aria-expanded="true"
aria-controls="test">
<span class="label label-success">GET</span> Get test object </a>
</h4>
</div>
<div id="test-get-test-object"
class="panel-collapse collapse in"
role="tabpanel">
<div class="panel-body">
<p class="lead">Test</p>
<pre>HTTP Method: <span class="label label-success"><h5 style="display:inline;">GET</h5></span></pre>
<pre>URL: <h5 style="display:inline;"><span class="label label-default">/api/test/{id}</span></h5></pre>
<h4>Parameters</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>id</code></td>
<td><i>string</i></td>
<td>Test ID</td>
</tr>
</table>
<h4>Errors</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><span class="label label-info">111</span></td>
<td>Info</td>
<td>Connection refused</td>
</tr>
<tr>
<td><span class="label label-success">200</span></td>
<td>Success</td>
<td>OK</td>
</tr>
<tr>
<td><span class="label label-default">300</span></td>
<td>Redirect</td>
<td>Found</td>
</tr>
<tr>
<td><span class="label label-warning">404</span></td>
<td>Error</td>
<td>Record not found</td>
</tr>
<tr>
<td><span class="label label-danger">500</span></td>
<td>Error</td>
<td>Application error</td>
</tr>
</table>
<div class="clearfix"></div>
<h3>Request</h3>
<pre>Content-Type: <span class="label label-primary">application/json</span></pre>
<h4>Headers</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><code>HTTP_X_AUTH</code></td>
<td>Authentication token</td>
</tr>
</table>
<h4>Body</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>id</code></td>
<td><i>MongoId</i></td>
<td>ID of something</td>
</tr>
</table>
<h4>Request body example</h4>
<pre><code class="json">{
"id": "123"
}</code></pre>
<div class="clearfix"></div>
<h3>Response</h3>
<pre>Content-Type: <span class="label label-primary"><h5 style="display:inline;">application/json</h5></span></pre>
<h4>Body</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>test</code></td>
<td><i>Object</i></td>
<td>Test object</td>
</tr>
<tr>
<td><code>test.id</code></td>
<td><i>MongoId</i></td>
<td>ID of something</td>
</tr>
<tr>
<td><code>test.name</code></td>
<td><i>string</i></td>
<td>Name of something</td>
</tr>
</table>
<h4>Response body example</h4>
<pre><code class="json">{
"test" : {
"id": "123",
"name": "Test"
}
}</code></pre>
</div>
</div>
</div> <div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
data-parent="#accordion-test"
href="#test-get-list-of-tests"
aria-expanded="true"
aria-controls="test">
<span class="label label-success">GET</span> Get list of tests </a>
</h4>
</div>
<div id="test-get-list-of-tests"
class="panel-collapse collapse in"
role="tabpanel">
<div class="panel-body">
<p class="lead">Tests list</p>
<pre>HTTP Method: <span class="label label-success"><h5 style="display:inline;">GET</h5></span></pre>
<pre>URL: <h5 style="display:inline;"><span class="label label-default">/api/test</span></h5></pre>
<h4>Errors</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><span class="label label-danger">500</span></td>
<td>Error</td>
<td>Application error</td>
</tr>
</table>
<div class="clearfix"></div>
<h3>Request</h3>
<pre>Content-Type: <span class="label label-primary">application/json</span></pre>
<h4>Headers</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><code>HTTP_X_AUTH</code></td>
<td>Authentication token</td>
</tr>
</table>
<div class="clearfix"></div>
<h3>Response</h3>
<pre>Content-Type: <span class="label label-primary"><h5 style="display:inline;">application/json</h5></span></pre>
<h4>Body</h4>
<table class="table table-bordered table-hover">
<tr>
<td>
<table class="table table-bordered">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>test</code></td>
<td><i>Object</i></td>
<td>Test object</td>
</tr>
<tr>
<td><code>test.id</code></td>
<td><i>MongoId</i></td>
<td>ID of something</td>
</tr>
<tr>
<td><code>test.name</code></td>
<td><i>string</i></td>
<td>Name of something</td>
</tr>
<tr>
<td><code>test.nested</code></td>
<td><i>Object</i></td>
<td>Nested object</td>
</tr>
<tr>
<td><code>test.nested.name</code></td>
<td><i>string</i></td>
<td>Name of nested</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table class="table table-bordered">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>test</code></td>
<td><i>Object</i></td>
<td>Test object</td>
</tr>
<tr>
<td><code>test.id</code></td>
<td><i>MongoId</i></td>
<td>ID of something</td>
</tr>
<tr>
<td><code>test.name</code></td>
<td><i>string</i></td>
<td>Name of something</td>
</tr>
<tr>
<td><code>test.nested</code></td>
<td><i>Object</i></td>
<td>Nested object</td>
</tr>
<tr>
<td><code>test.nested.name</code></td>
<td><i>string</i></td>
<td>Name of nested</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>...</td>
</tr>
</table>
<h4>Response body example</h4>
<pre><code class="json">[
{
"test" : {
"id": "123",
"name": "Test",
"nested": {
"name" : "Name"
}
}
},
{
"test" : {
"id": "124",
"name": "Test 2",
"nested" : {
"name" : "Name 2"
}
}
}
]</code></pre>
</div>
</div>
</div> </div>
</div>
</div>
</div>
</div></div> <div class="row">
<div class="col-lg-12" id="section-foo">
<div class="panel-group" data-toggle="collapse" id="accordion-foo" role="tablist" aria-multiselectable="true">
<div class="panel panel-primary">
<div class="panel-heading" role="tab">
<h3 class="panel-title title-primary">
<a data-toggle="collapse"
data-parent="#accordion-foo"
href="#foo"
aria-expanded="true"
aria-controls="foo">
Foo <span class="badge pull-right">1.0.0</span>
</a>
</h3>
</div>
<div id="foo" class="panel-collapse collapse in" role="tabpanel">
<div class="panel-body">
<p class="lead">Foo API</p>
<hr />
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
data-parent="#accordion-foo"
href="#foo-get-foo-object"
aria-expanded="true"
aria-controls="foo">
<span class="label label-success">GET</span> Get foo object </a>
</h4>
</div>
<div id="foo-get-foo-object"
class="panel-collapse collapse in"
role="tabpanel">
<div class="panel-body">
<p class="lead">Foo</p>
<pre>HTTP Method: <span class="label label-success"><h5 style="display:inline;">GET</h5></span></pre>
<pre>URL: <h5 style="display:inline;"><span class="label label-default">/api/foo/{id}</span></h5></pre>
<h4>Parameters</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>id</code></td>
<td><i>string</i></td>
<td>Foo ID</td>
</tr>
</table>
<h4>Errors</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><span class="label label-warning">404</span></td>
<td>Error</td>
<td>Record not found</td>
</tr>
<tr>
<td><span class="label label-danger">500</span></td>
<td>Error</td>
<td>Application error</td>
</tr>
</table>
<div class="clearfix"></div>
<h3>Request</h3>
<h4>Headers</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><code>HTTP_X_AUTH</code></td>
<td>Authentication token</td>
</tr>
</table>
<div class="clearfix"></div>
<h3>Response</h3>
<pre>Content-Type: <span class="label label-primary"><h5 style="display:inline;">application/json</h5></span></pre>
<h4>Body</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>id</code></td>
<td><i>MongoId</i></td>
<td>Foo ID</td>
</tr>
<tr>
<td><code>name</code></td>
<td><i>string</i></td>
<td>Foo name</td>
</tr>
</table>
<h4>Response body example</h4>
<pre><code class="json">{
"id": "123",
"name": "Foo"
}</code></pre>
</div>
</div>
</div> <div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse"
data-parent="#accordion-foo"
href="#foo-get-list-of-foo"
aria-expanded="true"
aria-controls="foo">
<span class="label label-success">GET</span> Get list of foo </a>
</h4>
</div>
<div id="foo-get-list-of-foo"
class="panel-collapse collapse in"
role="tabpanel">
<div class="panel-body">
<p class="lead">Foo list</p>
<pre>HTTP Method: <span class="label label-success"><h5 style="display:inline;">GET</h5></span></pre>
<pre>URL: <h5 style="display:inline;"><span class="label label-default">/api/foo</span></h5></pre>
<h4>Errors</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Code</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><span class="label label-danger">500</span></td>
<td>Error</td>
<td>Application error</td>
</tr>
</table>
<div class="clearfix"></div>
<h3>Request</h3>
<h4>Headers</h4>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><code>HTTP_X_AUTH</code></td>
<td>Authentication token</td>
</tr>
</table>
<div class="clearfix"></div>
<h3>Response</h3>
<pre>Content-Type: <span class="label label-primary"><h5 style="display:inline;">application/json</h5></span></pre>
<h4>Body</h4>
<table class="table table-bordered table-hover">
<tr>
<td>
<table class="table table-bordered">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>id</code></td>
<td><i>MongoId</i></td>
<td>Foo ID</td>
</tr>
<tr>
<td><code>name</code></td>
<td><i>string</i></td>
<td>Foo name</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table class="table table-bordered">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<tr>
<td><code>id</code></td>
<td><i>MongoId</i></td>
<td>Foo ID</td>
</tr>
<tr>
<td><code>name</code></td>
<td><i>string</i></td>
<td>Foo name</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>...</td>
</tr>
</table>
<h4>Response body example</h4>
<pre><code class="json">[
{
"id": "123",
"name": "Foo 1"
},
{
"id": "124",
"name": "Foo 2"
}
]</code></pre>
</div>
</div>
</div> </div>
</div>
</div>
</div>
</div></div> </div>
</div>
</div>
</div>
<footer class="footer" style="z-index:9999;">
<div class="container">
<p class="text-muted" style="text-align:center;">Documentation generated by <a href="https://github.com/vegas-cmf/apidoc">Vegas ApiDoc Documentor</a> - 2014-12-18 09:16:08</p>
</div>
</footer>
<script>
$(document).ready(function() {
function syntaxHighlight(json) {
if (typeof json !== 'string') {
json = JSON.stringify(json, undefined, 2);
}
json = json.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
var cls = 'number';
if (/^"/.test(match)) {
if (/:$/.test(match)) {
cls = 'key';
} else {
cls = 'string';
}
} else if (/true|false/.test(match)) {
cls = 'boolean';
} else if (/null/.test(match)) {
cls = 'null';
}
return '<span class="' + cls + '">' + match + '</span>';
});
}
$('code.json').each(function(i, block) {
var json = JSON.parse($(block).html());
$(block).html(syntaxHighlight(json));
hljs.highlightBlock(block);
});
$('.collapse').collapse();
$('.nav-sidebar > li').on('click', 'a', function(e) {
e.preventDefault();
$('.nav-sidebar').find('li.active').removeClass('active');
$(this).parent('li').addClass('active');
$('body').animate({
scrollTop: $($(this).attr('href')).offset().top
});
});
$('#search-api-phrase').on('keyup', function() {
if ($(this).val().length > 2) {
var phrase = $(this).val();
$('.title-primary').each(function() {
var reg = new RegExp(phrase, "i");
if ($(this).text().search(reg) === -1) {
$(this).parents('.panel-group').hide();
} else {
$(this).parents('.panel-group').show();
}
});
$('.nav-sidebar li').each(function() {
var reg = new RegExp(phrase, "i");
if ($(this).text().search(reg) === -1) {
$(this).hide();
} else {
$(this).show();
}
});
} else {
$('.panel-group').each(function() { $(this).show(); });
$('.nav-sidebar li').each(function() { $(this).show(); });
}
if ($('.panel-group').find(':visible').length == 0 && $('.nav-sidebar li').find(':visible').length == 0) {
$('#search-not-found').removeClass('hide');
} else {
$('#search-not-found').addClass('hide');
}
});
});
</script>
</body>
</html>
Output
This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account
Dismiss xKeyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |