File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
android/library/src/main/java/io/appwrite/services Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,15 @@ class {{ service.name | caseUcfirst }} : Service {
62
62
{%~ for parameter in method .parameters .query | merge(method .parameters .body ) %}
63
63
"{{ parameter .name }}" to {{ parameter .name | caseCamel }},
64
64
{%~ endfor %}
65
+ {%~ if method .type == ' ___location' or method .type == ' webAuth' %}
65
66
{%~ if method .auth | length > 0 %}
66
67
{%~ for node in method .auth %}
67
68
{%~ for key ,header in node | keys %}
68
69
"{{ header | caseLower }}" to client.config["{{ header | caseLower }}"],
69
70
{%~ endfor %}
70
71
{%~ endfor %}
71
72
{%~ endif %}
73
+ {%~ endif %}
72
74
)
73
75
{%~ if method .type == ' webAuth' %}
74
76
val query = mutableListOf<String >()
Original file line number Diff line number Diff line change 10
10
{%- else -%} let
11
11
{%- endif %} params: [String: Any?] = [
12
12
{%~ for parameter in method .parameters .query | merge(method .parameters .body ) %}
13
- "{{ parameter .name }}": {{ parameter .name | caseCamel | escapeKeyword }}{% if not loop .last or method .auth | length > 0 %},{% endif %}
13
+ "{{ parameter .name }}": {{ parameter .name | caseCamel | escapeKeyword }}{% if not loop .last or ( method .type == ' ___location ' or method . type == ' webAuth ' and method . auth | length > 0 ) %},{% endif %}
14
14
15
15
{%~ endfor %}
16
+ {%~ if method .type == ' ___location' or method .type == ' webAuth' %}
16
17
{%~ if method .auth | length > 0 %}
17
18
{%~ for node in method .auth %}
18
19
{%~ for key ,header in node | keys %}
21
22
{%~ endfor %}
22
23
{%~ endfor %}
23
24
{%~ endif %}
25
+ {%~ endif %}
24
26
]
25
27
{%~ endif %}
You can’t perform that action at this time.
0 commit comments