diff --git a/templates/api_v2/api_documentation.html b/templates/api_v2/api_documentation.html index 7e4f97c..103f137 100644 --- a/templates/api_v2/api_documentation.html +++ b/templates/api_v2/api_documentation.html @@ -2,151 +2,88 @@ {% load i18n %} {% block content %} -
/api/v2/{{ doc.url_pattern }}
+ {{ doc.summary }}
-{{ doc.summary }}
+{% trans 'Authentication' %}: {{ doc.auth }}
-{% trans 'Authentication' %}: {{ doc.auth }}
- - - {% 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' %} - {% endif %} - | -
- {{ param.description }}
- {% if param.example %}
- {% trans 'Example' %}: {{ param.example }} - {% endif %} - |
-
| {% 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 %}
-
-
- {% if doc.returns %}
-
-
+ - {% trans 'Returns' %} --
-
-
|
+
+ {{ param.description }}
+ {% if param.example %}
+ {% trans 'Example' %}: {{ param.example }} {% endif %} + |
+
{{ example|pprint }}
- {{ ret.body|pprint }}
+ {{ example|pprint }}