+
+ {% for route in routes %}
+ {% if api_docs.get(route) %}
+
+
{{route}}
+
{{api_docs[route].get('desc', '')}}
+
+ {% if api_docs[route].get('params') %}
+
Params
+
+ {% for param in api_docs[route]['params'] %}
+
+ | {{param}} |
+ {{ api_docs[route]['params'][param].get('type', 'string') }} |
+ {{ api_docs[route]['params'][param]['desc'] }} |
+
+ {% endfor %}
+
+ {% endif %}
+
+ {% if api_docs[route].get('return') %}
+
Return
+
+
{{ api_docs[route]['return'].get('type', '{"success": True}') }}
+ {% if api_docs[route]['return'].get('example') %}
+
+
Example
+
{{ api_docs[route]['return'].get('example', '')|safe }}
+
+ {% endif %}
+
+ {% endif %}
+
+ {% endif %}
+ {% endfor %}
+
+