diff --git a/src/templates/json_template.json b/src/templates/json_template.json new file mode 100644 index 0000000..108b96f --- /dev/null +++ b/src/templates/json_template.json @@ -0,0 +1,19 @@ +{ + "title": "{{ title }}", + "version": "{{ version }}", + "description": "{{ description }}", + "endpoints": [ + {% for endpoint in endpoints %} + { + "path": "{{ endpoint.path }}", + "method": "{{ endpoint.method }}", + "summary": "{{ endpoint.summary }}", + "description": "{{ endpoint.description }}", + "tags": {{ endpoint.tags|tojson }}, + "parameters": {{ endpoint.parameters|tojson }}, + "requestBody": {{ endpoint.request_body|tojson }}, + "responses": {{ endpoint.responses|tojson }} + }{% if not loop.last %},{% endif %} + {% endfor %} + ] +}