diff --git a/templates/api_v2/api_documentation.html b/templates/api_v2/api_documentation.html index 103f137..96a5a76 100644 --- a/templates/api_v2/api_documentation.html +++ b/templates/api_v2/api_documentation.html @@ -6,84 +6,148 @@
/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' %} - {% endif %} - | -
- {{ param.description }}
- {% if param.example %}
- {% trans 'Example' %}: {{ param.example }} - {% endif %} - |
-
{% trans 'Authentication' %}: {{ doc.auth }}
- {% if doc.returns %} -{{ ret.body|pprint }}
- | {% 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 %} + |
+
{{ example|pprint }}
+
+ {% if doc.returns %}
+ {{ ret.body|pprint }}
+ {{ example|pprint }}
+