{% extends "base.html" %} {% load i18n %} {% block content %}

{% trans 'API Documentation' %}

{% for doc in docs %}
{% for method in doc.methods %} {{ method }} {% endfor %} /api/v2/{{ doc.url_pattern }}

{{ doc.summary }}

{% trans 'Authentication' %}: {{ doc.auth }}

{% if doc.params %}
{% trans 'Parameters' %}
{% for param in doc.params %} {% endfor %}
{% trans 'Name' %} {% trans 'In' %} {% trans 'Type' %} {% trans 'Required' %} {% trans 'Description' %}
{{ param.name }} {{ param.in }} {{ param.type }} {% if param.required %} {% trans 'Yes' %} {% else %} {% trans 'No' %} {% endif %} {{ param.description }} {% if param.example %}
{% trans 'Example' %}: {{ param.example }} {% endif %}
{% endif %} {% if doc.returns %}
{% trans 'Returns' %}
    {% for ret in doc.returns %}
  • {{ ret.status }}
    {{ ret.body|pprint }}
  • {% endfor %}
{% endif %} {% if doc.examples %}
{% trans 'Examples' %}
{% for key, example in doc.examples.items %}
{{ key }}
{{ example|pprint }}
{% endfor %} {% endif %}
{% endfor %}
{% endblock %}