This commit is contained in:
19
src/templates/json_template.json
Normal file
19
src/templates/json_template.json
Normal file
@@ -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 %}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user