File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change
1
+ return await this.client.call('{{ method .method | caseLower }}', path, {
2
+ {% for parameter in method .parameters .header %}
3
+ '{{ parameter .name }}': ${{ parameter .name | caseCamel | escapeKeyword }},
4
+ {% endfor %}
5
+ {% for key , header in method .headers %}
6
+ '{{ key }}': '{{ header }}',
7
+ {% endfor %}
8
+ }, payload{% if method .type == ' location' %}, 'arraybuffer'{% endif %});
Original file line number Diff line number Diff line change @@ -211,18 +211,8 @@ class {{ service.name | caseUcfirst }} extends Service {
211
211
});
212
212
{% endif %}
213
213
{% endfor %}
214
- {% else %}
215
- return await this.client.call('{{ method .method | caseLower }}', path, {
216
- {% for parameter in method .parameters .header %}
217
- '{{ parameter .name }}': ${{ parameter .name | caseCamel | escapeKeyword }},
218
- {% endfor %}
219
- {% for key , header in method .headers %}
220
- '{{ key }}': '{{ header }}',
221
- {% endfor %}
222
- }, payload{% if method .type == ' location' %}, 'arraybuffer'{% endif %});
223
- {% endif %}
224
- }
225
- {% endfor %}
214
+ {# api section #}
215
+ }
226
216
}
227
217
228
218
module.exports = {{ service .name | caseUcfirst }};
You can’t perform that action at this time.
0 commit comments