File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed
kotlin/src/main/kotlin/io/appwrite Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -222,21 +222,21 @@ export class {{ service.name | caseUcfirst }} extends Service {
222
222
'{{ method .method | caseLower }}',
223
223
apiPath,
224
224
{
225
- {% for parameter in method .parameters .header %}
225
+ {%~ for parameter in method .parameters .header - %}
226
226
'{{ parameter .name }}': ${{ parameter .name | caseCamel | escapeKeyword }},
227
- {% endfor %}
228
- {% for key , header in method .headers %}
227
+ {%~ endfor - %}
228
+ {%~ for key , header in method .headers %}
229
229
'{{ key }}': '{{ header }}',
230
- {% endfor %}
230
+ {%~ endfor %}
231
231
},
232
232
payload,
233
- {% if method .type == ' location' %}
233
+ {%~ if method .type == ' location' %}
234
234
'arraybuffer'
235
- {% elseif method .type == ' webAuth' %}
235
+ {%~ elseif method .type == ' webAuth' %}
236
236
'location'
237
- {% else %}
237
+ {%~ else %}
238
238
'json'
239
- {% endif %}
239
+ {%~ endif %}
240
240
);
241
241
{% endif %}
242
242
}
Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ class Client @JvmOverloads constructor(
62
62
"x-sdk-platform" to "{{ sdk .platform }}",
63
63
"x-sdk-language" to "{{ language .name | caseLower }}",
64
64
"x-sdk-version" to "{{ sdk .version }}",
65
- {% if spec .global .defaultHeaders | length > 0 %}
66
- {% for key , header in spec .global .defaultHeaders %}
65
+ {%~ if spec .global .defaultHeaders | length > 0 %}
66
+ {%~ for key , header in spec .global .defaultHeaders %}
67
67
"{{ key | caseLower }}" to "{{ header }}",
68
- {% endfor %}
69
- {% endif %}
68
+ {%~ endfor %}
69
+ {%~ endif %}
70
70
)
71
71
72
72
config = mutableMapOf()
Original file line number Diff line number Diff line change 3
3
path: api_path,
4
4
headers: api_headers,
5
5
params: api_params,
6
- {% if method .type == " webAuth" %}
6
+ {%~ if method .type == " webAuth" %}
7
7
response_type: "location"
8
- {% elseif method .responseModel is defined and method .responseModel != ' any' %}
8
+ {%~ elseif method .responseModel is defined and method .responseModel != ' any' %}
9
9
response_type: Models::{{ method .responseModel | caseUcfirst }}
10
- {% endif %}
10
+ {%~ endif %}
11
11
)
You can’t perform that action at this time.
0 commit comments