Add templates
Some checks failed
CI / test (push) Failing after 12s

This commit is contained in:
2026-01-31 17:12:32 +00:00
parent 7d7a29fb34
commit b67d603b9b

View File

@@ -0,0 +1,55 @@
# {{ title }}
{% if description %}
{{ description }}
{% endif %}
**Version:** {{ version }}
---
{% for tag, tag_endpoints in grouped_endpoints.items() %}
## {{ tag }}
{% for endpoint in tag_endpoints %}
### {{ endpoint.method.value }} {{ endpoint.path }}
{% if endpoint.summary %}
**{{ endpoint.summary }}**
{% endif %}
{% if endpoint.description %}
{{ endpoint.description }}
{% endif %}
{% if endpoint.parameters %}
#### Parameters
| Name | Location | Type | Required | Description |
|------|----------|------|----------|-------------|
{% for param in endpoint.parameters %}
| `{{ param.name }}` | {{ param.location.value }} | {{ param.type }} | {{ 'Yes' if param.required else 'No' }} | {{ param.description }} |
{% endfor %}
{% endif %}
{% if endpoint.responses %}
#### Responses
| Status | Description |
|--------|-------------|
{% for response in endpoint.responses %}
| {{ response.status_code }} | {{ response.description }} |
{% endfor %}
{% endif %}
{% if endpoint.file_path %}
> **Source:** {{ endpoint.file_path }}{% if endpoint.line_number %}:{{ endpoint.line_number }}{% endif %}
{% endif %}
---
{% endfor %}
{% endfor %}
---
*Generated by DocGen-CLI*