From 718f3d6a139a2d419fd873cd56f6520730c800fc Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 16:20:33 +0000 Subject: [PATCH] Initial upload with CI/CD workflow --- src/templates/markdown_template.md | 53 ++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/templates/markdown_template.md diff --git a/src/templates/markdown_template.md b/src/templates/markdown_template.md new file mode 100644 index 0000000..217f8b3 --- /dev/null +++ b/src/templates/markdown_template.md @@ -0,0 +1,53 @@ +# {{ title }} + +## API Reference + +**Version:** {{ version }} + +--- + +## Endpoints + +{% for endpoint in endpoints %} +### {{ endpoint.method }} {{ endpoint.path }} + +{% if endpoint.deprecated %} +> **Deprecated** + +{% endif %}{% if endpoint.summary %} +**{{ endpoint.summary }}** + +{% endif %}{% if endpoint.description %} +{{ endpoint.description }} + +{% endif %}{% if endpoint.tags %} +**Tags:** {% for tag in endpoint.tags %}`{{ tag }}` {% endfor %} + +{% endif %} +#### Parameters + +| Name | Type | Location | Required | Description | +|------|------|----------|----------|-------------| +{% for param in endpoint.parameters %} +| {{ param.name }} | {{ param.schema.type if param.schema else 'any' }} | {{ param.in }} | {{ 'Yes' if param.required else 'No' }} | {{ param.description or '-' }} | +{% endfor %} + +#### Responses + +| Status | Description | +|--------|-------------| +{% for status, response in endpoint.responses.items() %} +| {{ status }} | {{ response.description }} | +{% endfor %} + +{% if endpoint.request_body %} +#### Request Body + +```json +{{ endpoint.request_body|tojson }} +``` +{% endif %} + +--- + +{% endfor %}