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
|
@ -11,7 +11,10 @@
|
||||||
{% 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>
|
||||||
|
@ -19,7 +22,6 @@
|
||||||
</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>
|
||||||
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue