{% set boundary = 'cec8e8123c05ba25' %}
{{ method.method | caseUpper }} {{spec.basePath}}{{ method.path }} HTTP/1.1
Host: {{ spec.host }}
{% for key, header in method.headers %}
{{ key | caseUcwords }}: {{ header }}{% if header == 'multipart/form-data' %}; boundary="{{boundary}}"{% endif ~%}
{% endfor %}
{% for key,header in spec.global.defaultHeaders %}
{{ key }}: {{ header }}
{% endfor %}
{% for node in method.security %}
{% for key,header in node | keys %}
{{ node[header]['name'] }}: {{ node[header]['x-appwrite']['demo'] | raw }}
{% endfor %}
{% endfor %}
{% for key, header in method.headers %}
{% if header == 'application/json' %}

{% if method.parameters.body %}
{
{% for parameter in method.parameters.body %}
  "{{ parameter.name }}": {{ parameter | paramExample }}{% if not loop.last %},{% endif ~%}
{% endfor %}
}
{% endif %}
{% endif %}
{% if header == 'multipart/form-data' %}
Content-Length: *Length of your entity body in bytes*

{% for parameter in method.parameters.body %}
--{{boundary}}
Content-Disposition: form-data; name="{{parameter.name}}{% if parameter.type == "array" %}[]{% endif %}"

{{ parameter | paramExample }}

{% endfor %}
--{{boundary}}--
{% endif %}
{% endfor %}