File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11using {{ spec .title | caseUcfirst }};
22using {{ spec .title | caseUcfirst }}.Models;
33
4- Client client = new Client()
4+ var client = new Client()
55{% if method .auth | length > 0 %}
66 .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
77{% for node in method .auth %}
88{% for key ,header in node | keys %}
99 .Set{{header | caseUcfirst }}("{{node [header ][' x-appwrite' ]['demo' ]}}"){% if loop .last %};{% endif %} // {{node [header ].description}}
1010{% endfor %}{% endfor %}{% endif %}
1111
12- {{ service . name | caseUcfirst }} {{ service .name | caseCamel }} = new {{ service .name | caseUcfirst }}(client);
12+ var {{ service .name | caseCamel }} = new {{ service .name | caseUcfirst }}(client);
1313
14- {% if method .type == ' location' %}byte[]{% else %}{{ method .responseModel | caseUcfirst | overrideIdentifier }}{% endif %} result = await {{ service .name | caseCamel }}.{{ method .name | caseUcfirst }}({% if method .parameters .all | length == 0 %});{% endif %}
14+ {% if method .method != ' delete ' %}{% if method . type == ' location' %}byte[]{% else %}{{ method .responseModel | caseUcfirst | overrideIdentifier }}{% endif %} result = {% endif %} await {{ service .name | caseCamel }}.{{ method .name | caseUcfirst }}({% if method .parameters .all | length == 0 %});{% endif %}
1515{% for parameter in method .parameters .all %}{% if parameter .required %}{% if not loop .first %},{% endif %}
1616
1717 {{ parameter .name }}: {{ parameter | paramExample }}{% endif %}{% endfor %}{% if method .parameters .all | length > 0 %});{% endif %}
You can’t perform that action at this time.
0 commit comments