+
+
+
+
+ {% if endpoint.description %}
+ {{ endpoint.summary or endpoint.description or 'Endpoint' }}
+
+ {{ endpoint.method }}
+ {{ endpoint.path }}
+
+ {% if endpoint.deprecated %}
+ Deprecated
+ {% endif %}
+ {% if endpoint.tags %}
+
+ {% for tag in endpoint.tags %}
+ {{ tag }}
+ {% endfor %}
+
+ {% endif %}
+
+
+ {% endif %}
+
+ {% if endpoint.parameters and endpoint.parameters|length > 0 %}
+ Description
+{{ endpoint.description }}
+
+
+
+
+
+ {% endif %}
+
+ {% if endpoint.request_body %}
+ Parameters
+| Name | +Type | +Location | +Description | ++ |
|---|---|---|---|---|
| + {{ param.name }} + {% if param.required %}*{% endif %} + | +{{ param.schema.type if param.schema else 'any' }} | +{{ param.in }} | +{{ param.description or '-' }} | +{% if param.required %}required{% endif %} | +
+
+ {% endif %}
+
+ Request Body
+{{ endpoint.request_body|tojson(indent=2) }}
+
+
+ Responses
+ {% for status, response in endpoint.responses.items() %} +
+ {% if status|startswith('2') %}
+ {{ status }}
+ {% elif status|startswith('4') %}
+ {{ status }}
+ {% elif status|startswith('5') %}
+ {{ status }}
+ {% else %}
+ {{ status }}
+ {% endif %}
+ {{ response.description if response.description else '' }}
+ {% if response.content and response.content.get('application/json') %}
+
+ {% endfor %}
+ {{ response.content['application/json'].schema|tojson(indent=2) }}
+ {% endif %}
+ + {% endfor %} +