File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change
1
+ {% set boundary = random () %}
1
2
{{ method .method | caseUpper }} {{spec .basePath }}{{ method .path }} HTTP/1.1
2
- Host: {{spec .host }}
3
+ Host: {{ spec .host }}
3
4
{% for key , header in method .headers %}
4
- {{ key }}: {{ header }}
5
+ {{ key }}: {{ header }}{% if header == ' multipart/form-data ' %}; boundary="{{ boundary }}"{% endif ~%}
5
6
{% endfor %}
6
7
{% for key ,header in spec .global .defaultHeaders %}
7
- {{key }}: {{header }}
8
+ {{ key }}: {{ header }}
8
9
{% endfor %}
9
10
{% for header in spec .global .headers %}
10
11
{% if header .key != ' Mode' and header .key != ' Locale' %}
11
- {{header .name }}: {% for node in method .security %}{% for key ,x in node | keys %}{% if x == header .key %}{{node [x ][' x-appwrite' ]['demo' ]}}{% endif %}{% endfor %}{% endfor %}
12
-
12
+ {{ header .name }}: {% for node in method .security %}{% for key ,x in node | keys %}{% if x == header .key %}{{node [x ][' x-appwrite' ]['demo' ]}}{% endif %}{% endfor %}{% endfor ~%}
13
13
{% endif %}
14
14
{% endfor %}
15
-
16
15
{% for key , header in method .headers %}
17
16
{% if header == ' application/json' %}
17
+
18
18
{% if method .parameters .body %}
19
19
{
20
20
{% for parameter in method .parameters .body %}
@@ -25,9 +25,8 @@ Host: {{spec.host}}
25
25
{% endif %}
26
26
{% endif %}
27
27
{% if header == ' multipart/form-data' %}
28
- {% set boundary = random () %}
29
- boundary={{boundary }}
30
28
Content-Length: *Length of your entity body in bytes*
29
+
31
30
{% for parameter in method .parameters .body %}
32
31
--{{boundary }}
33
32
Content-Disposition: form-data; name="{{parameter .name }}{% if parameter .type == " array" %}[]{% endif %}"
You can’t perform that action at this time.
0 commit comments