Skip to content

Commit b0fe3c6

Browse files
committed
feat: add API version to request
1 parent eb2f55e commit b0fe3c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/generator/templates/method-partial.njk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
const parameters = {
5252
options: Object.assign({
5353
url: (rootUrl + {{ ('/' + rootApi.servicePath + m.path)|buildurl|safe }}).replace(/([^:]\/)\/+/g, '$1'),
54-
method: '{{ m.httpMethod }}'
54+
method: '{{ m.httpMethod }}',
55+
apiVersion: '{{ m.apiVersion }}'
5556
}, options),
5657
params,
5758
{% if m.mediaUpload.protocols.simple.path %}mediaUrl: (rootUrl + {{ ('/' + m.mediaUpload.protocols.simple.path)|buildurl|safe }}).replace(/([^:]\/)\/+/g, '$1'),{% endif %}

0 commit comments

Comments
 (0)