diff --git a/templates/api_v2/api_documentation.html b/templates/api_v2/api_documentation.html index 103f137..7e4f97c 100644 --- a/templates/api_v2/api_documentation.html +++ b/templates/api_v2/api_documentation.html @@ -2,88 +2,151 @@ {% load i18n %} {% block content %} -
/api/v2/{{ doc.url_pattern }}
- {{ doc.summary }}
+{% trans 'Authentication' %}: {{ doc.auth }}
+{{ doc.summary }}
- {% if doc.params %} -| {% trans 'Name' %} | -{% trans 'In' %} | -{% trans 'Type' %} | -{% trans 'Required' %} | -{% trans 'Description' %} | -||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ param.name }} |
- {{ param.in }} | -{{ param.type }} | -
- {% if param.required %}
- {% trans 'Yes' %}
- {% else %}
- {% trans 'No' %}
+ {% trans 'Authentication' %}: {{ doc.auth }} + + + {% if doc.params %} +
+
{% endif %}
- + {% trans 'Parameters' %} ++
+
+
|
-
- {{ param.description }}
- {% if param.example %}
- {% trans 'Example' %}: {{ param.example }} + + + {% if doc.returns %} +
+
{% endif %}
- + {% trans 'Returns' %} ++
+
+
|
-
{{ ret.body|pprint }}
- {{ example|pprint }}
+
+ {% if doc.examples %}
+ {{ example|pprint }}
+