diff --git a/templates/docs/api.html b/templates/docs/api.html index 500a64e9..41da4fc7 100644 --- a/templates/docs/api.html +++ b/templates/docs/api.html @@ -156,12 +156,10 @@

{{tag}}

{%endfor%} {%endif%} {%if "requestBody" in item[endpoint][method]%} - {%if "parameters" not in item[endpoint] and "parameters" not in item[endpoint][method]%} -

Parameters

-
- {%endif%} - {%for property in item[endpoint][method]["requestBody"]["content"]["application/json"]["schema"]["properties"]%} -

{{property}} ({{item[endpoint][method]["requestBody"]["content"]["application/json"]["schema"]["properties"][property]["type"]}}): {%if property in item[endpoint][method]["requestBody"]["content"]["application/json"]["schema"]["required"]%}Required{%else%}Optional{%endif%}. {{item[endpoint][method]["requestBody"]["content"]["application/json"]["schema"]["properties"][property]["description"].replace(" -", "\n -")}}

+

Request body (multipart/form-data)

+
+ {%for property in item[endpoint][method]["requestBody"]["content"]["multipart/form-data"]["schema"]["properties"]%} +

{{property}} ({{item[endpoint][method]["requestBody"]["content"]["multipart/form-data"]["schema"]["properties"][property]["type"]}}): {%if property in item[endpoint][method]["requestBody"]["content"]["multipart/form-data"]["schema"]["required"]%}Required{%else%}Optional{%endif%}. {{item[endpoint][method]["requestBody"]["content"]["multipart/form-data"]["schema"]["properties"][property]["description"].replace(" -", "\n -")}}

{%endfor%} {%endif%}

Responses