diff --git a/templates/zerver/api_endpoints.html b/templates/zerver/api_endpoints.html index 8be350c11a..dfd5c58f64 100644 --- a/templates/zerver/api_endpoints.html +++ b/templates/zerver/api_endpoints.html @@ -3,57 +3,63 @@ {# API information page #} {% block customhead %} - {{ super() }} - {{ minified_js('api')|safe }} +{{ super() }} +{{ minified_js('api')|safe }} {% endblock %} {% block portico_content %} -

API endpoints documentation

+

API endpoints documentation

-

In addition to our pre-built API bindings for Python, we also have a REST-ful web API.

+

In addition to our pre-built API bindings for +Python, we also have +a REST-ful +web API.

- + -{% autoescape off %} + {% autoescape off %} + {% for blurb in content %} +
+

{{ blurb.call }}

+
{{blurb.method}} {{ blurb.endpoint }}
+
+

Arguments

+
+ {% for argument in blurb.arguments %} +
{{ argument.0 }}
+
{{ argument.1 }}
+ {% endfor %} +
-{% for blurb in content %} -
-

{{ blurb.call }}

-
{{blurb.method}} {{ blurb.endpoint }}
-
-

Arguments

-
- {% for argument in blurb.arguments %} -
{{ argument.0 }}
-
{{ argument.1 }}
- {% endfor %} -
-

Return values

-
- {% for return in blurb.returns %} -
{{ return.0 }}
-
{{ return.1 }}
- {% endfor %} -
- {% if blurb.example_request %} -

Example request

- {% for lang, req in blurb.example_request.items() %} -
- {{ req }} +

Return values

+
+ {% for return in blurb.returns %} +
{{ return.0 }}
+
{{ return.1 }}
+ {% endfor %} +
+ + {% if blurb.example_request %} +

Example request

+ {% for lang, req in blurb.example_request.items() %} +
+ {{ req }} +
+ {% endfor %} + {% endif %} + + {% if blurb.rendered_response %} +

Example response

+
+ {{ blurb.rendered_response }} +
+ {% endif %}
- {% endfor %}{% endif %} - {% if blurb.rendered_response %} -

Example response

-
- {{ blurb.rendered_response }}
- {% endif %} -
-
-{% endfor %} -{% endautoescape %} + {% endfor %} + {% endautoescape %} {% endblock %}