mirror of https://github.com/zulip/zulip.git
Clean api_endpoints.html to use 4 space indents.
Tweaked a bit by tabbott.
This commit is contained in:
parent
0a2c771504
commit
8e76b81a15
|
@ -3,25 +3,27 @@
|
||||||
{# API information page #}
|
{# API information page #}
|
||||||
|
|
||||||
{% block customhead %}
|
{% block customhead %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
{{ minified_js('api')|safe }}
|
{{ minified_js('api')|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{% block portico_content %}
|
{% block portico_content %}
|
||||||
<h1 class="api-page-header">API endpoints documentation</h1>
|
<h1 class="api-page-header">API endpoints documentation</h1>
|
||||||
|
|
||||||
<p>In addition to our <a href="/api">pre-built API bindings for Python</a>, we also have a <a href="http://en.wikipedia.org/wiki/Representational_state_transfer">REST-ful</a> web API.</p>
|
<p>In addition to our <a href="/api">pre-built API bindings for
|
||||||
|
Python</a>, we also have
|
||||||
|
a <a href="http://en.wikipedia.org/wiki/Representational_state_transfer">REST-ful</a>
|
||||||
|
web API.</p>
|
||||||
|
|
||||||
<ul class="nav nav-tabs" id="api-example-tabs">
|
<ul class="nav nav-tabs" id="api-example-tabs">
|
||||||
<li class="active"><a href="#curl" data-toggle="tab" data-class="curl">curl</a></li>
|
<li class="active"><a href="#curl" data-toggle="tab" data-class="curl">curl</a></li>
|
||||||
<li><a href="#python" data-toggle="tab" data-class="python">Python</a></li>
|
<li><a href="#python" data-toggle="tab" data-class="python">Python</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% autoescape off %}
|
{% autoescape off %}
|
||||||
|
{% for blurb in content %}
|
||||||
{% for blurb in content %}
|
<div class="api-block">
|
||||||
<div class="api-block">
|
|
||||||
<h2 class="call">{{ blurb.call }}</h2>
|
<h2 class="call">{{ blurb.call }}</h2>
|
||||||
<div class="endpoint"><code>{{blurb.method}} {{ blurb.endpoint }}</code></div>
|
<div class="endpoint"><code>{{blurb.method}} {{ blurb.endpoint }}</code></div>
|
||||||
<div class="api-details">
|
<div class="api-details">
|
||||||
|
@ -32,6 +34,7 @@
|
||||||
<dd>{{ argument.1 }}</dd>
|
<dd>{{ argument.1 }}</dd>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<h3>Return values</h3>
|
<h3>Return values</h3>
|
||||||
<dl class="dl-horizontal returns">
|
<dl class="dl-horizontal returns">
|
||||||
{% for return in blurb.returns %}
|
{% for return in blurb.returns %}
|
||||||
|
@ -39,13 +42,16 @@
|
||||||
<dd>{{ return.1 }}</dd>
|
<dd>{{ return.1 }}</dd>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
{% if blurb.example_request %}
|
{% if blurb.example_request %}
|
||||||
<h3>Example request</h3>
|
<h3>Example request</h3>
|
||||||
{% for lang, req in blurb.example_request.items() %}
|
{% for lang, req in blurb.example_request.items() %}
|
||||||
<div class="example_request {{ lang }}">
|
<div class="example_request {{ lang }}">
|
||||||
{{ req }}
|
{{ req }}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}{% endif %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if blurb.rendered_response %}
|
{% if blurb.rendered_response %}
|
||||||
<h3>Example response</h3>
|
<h3>Example response</h3>
|
||||||
<div class="example_response">
|
<div class="example_response">
|
||||||
|
@ -53,7 +59,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue