@@ -33,7 +33,7 @@ namespace {{packageName}}.{{apiPackage}}
33
33
/// <exception cref =" { { packageName} } .Client.ApiException" >Thrown when fails to make API call</exception >
34
34
{ {#allParams} }/// <param name =" { { paramName} } " >{ {description} }{ {^required} } (optional{ {#defaultValue} }, default to { {.} }{ {/defaultValue} }){ {/required} }</param >
35
35
{ {/allParams} }/// <returns >{ {#returnType} }{ {returnType} }{ {/returnType} }</returns >
36
- { {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }void{ {/returnType} } { {operationId} } ({ {#allParams} }{ {{dataType} }} { {paramName} }{ {^required} }{ {#optionalMethodArgument} } = default({ {{dataType} }}){ {/optionalMethodArgument} }{ {/required} }{ {#hasMore} }, { {/hasMore} }{ {/allParams} });
36
+ { {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }void{ {/returnType} } { {operationId} } ({ {#allParams} }{ {{dataType} }} { {paramName} }{ {^required} }{ {#optionalMethodArgument} } = default({ {{dataType} }}){ {/optionalMethodArgument} }{ {/required} }{ {#hasMore} }, { {/hasMore} }, { {/allParams} }Dictionary< String , String > headers );
37
37
38
38
/// <summary >
39
39
/// { {summary} }
@@ -44,7 +44,7 @@ namespace {{packageName}}.{{apiPackage}}
44
44
/// <exception cref =" { { packageName} } .Client.ApiException" >Thrown when fails to make API call</exception >
45
45
{ {#allParams} }/// <param name =" { { paramName} } " >{ {description} }{ {^required} } (optional{ {#defaultValue} }, default to { {.} }{ {/defaultValue} }){ {/required} }</param >
46
46
{ {/allParams} }/// <returns >ApiResponse of { {#returnType} }{ {returnType} }{ {/returnType} }{ {^returnType} }Object(void){ {/returnType} }</returns >
47
- ApiResponse<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Object{ {/returnType} }> { {operationId} }WithHttpInfo ({ {#allParams} }{ {{dataType} }} { {paramName} }{ {^required} }{ {#optionalMethodArgument} } = default({ {{dataType} }}){ {/optionalMethodArgument} }{ {/required} }{ {#hasMore} }, { {/hasMore} }{ {/allParams} });
47
+ ApiResponse<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Object{ {/returnType} }> { {operationId} }WithHttpInfo ({ {#allParams} }{ {{dataType} }} { {paramName} }{ {^required} }{ {#optionalMethodArgument} } = default({ {{dataType} }}){ {/optionalMethodArgument} }{ {/required} }{ {#hasMore} }, { {/hasMore} }, { {/allParams} }Dictionary< String , String > headers );
48
48
{ {/operation} }
49
49
#endregion Synchronous Operations
50
50
{ {#supportsAsync} }
@@ -193,9 +193,9 @@ namespace {{packageName}}.{{apiPackage}}
193
193
/// <exception cref =" { { packageName} } .Client.ApiException" >Thrown when fails to make API call</exception >
194
194
{ {#allParams} }/// <param name =" { { paramName} } " >{ {description} }{ {^required} } (optional{ {#defaultValue} }, default to { {.} }{ {/defaultValue} }){ {/required} }</param >
195
195
{ {/allParams} }/// <returns >{ {#returnType} }{ {returnType} }{ {/returnType} }</returns >
196
- public { {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }void{ {/returnType} } { {operationId} } ({ {#allParams} }{ {{dataType} }} { {paramName} }{ {^required} }{ {#optionalMethodArgument} } = default({ {{dataType} }}){ {/optionalMethodArgument} }{ {/required} }{ {#hasMore} }, { {/hasMore} }{ {/allParams} })
196
+ public { {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }void{ {/returnType} } { {operationId} } ({ {#allParams} }{ {{dataType} }} { {paramName} }{ {^required} }{ {#optionalMethodArgument} } = default({ {{dataType} }}){ {/optionalMethodArgument} }{ {/required} }{ {#hasMore} }, { {/hasMore} }, { {/allParams} }Dictionary< String , String > headers )
197
197
{
198
- {{#returnType} }ApiResponse<{ {{returnType} }}> localVarResponse = { {operationId} }WithHttpInfo({ {#allParams} }{ {paramName} }{ {#hasMore} }, { {/hasMore} }{ {/allParams} });
198
+ {{#returnType} }ApiResponse<{ {{returnType} }}> localVarResponse = { {operationId} }WithHttpInfo({ {#allParams} }{ {paramName} }{ {#hasMore} }, { {/hasMore} }, { {/allParams} }headers );
199
199
return localVarResponse.Data;{ {/returnType} }{ {^returnType} }{ {operationId} }WithHttpInfo({ {#allParams} }{ {paramName} }{ {#hasMore} }, { {/hasMore} }{ {/allParams} });{ {/returnType} }
200
200
}
201
201
@@ -205,7 +205,7 @@ namespace {{packageName}}.{{apiPackage}}
205
205
/// <exception cref =" { { packageName} } .Client.ApiException" >Thrown when fails to make API call</exception >
206
206
{ {#allParams} }/// <param name =" { { paramName} } " >{ {description} }{ {^required} } (optional{ {#defaultValue} }, default to { {.} }{ {/defaultValue} }){ {/required} }</param >
207
207
{ {/allParams} }/// <returns >ApiResponse of { {#returnType} }{ {returnType} }{ {/returnType} }{ {^returnType} }Object(void){ {/returnType} }</returns >
208
- public ApiResponse<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Object{ {/returnType} }> { {operationId} }WithHttpInfo ({ {#allParams} }{ {{dataType} }} { {paramName} }{ {^required} }{ {#optionalMethodArgument} } = default({ {{dataType} }}){ {/optionalMethodArgument} }{ {/required} }{ {#hasMore} }, { {/hasMore} }{ {/allParams} })
208
+ public ApiResponse<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Object{ {/returnType} }> { {operationId} }WithHttpInfo ({ {#allParams} }{ {{dataType} }} { {paramName} }{ {^required} }{ {#optionalMethodArgument} } = default({ {{dataType} }}){ {/optionalMethodArgument} }{ {/required} }{ {#hasMore} }, { {/hasMore} }, { {/allParams} }Dictionary< String , String > headers )
209
209
{
210
210
{{#allParams} }
211
211
{ {#required} }
@@ -218,7 +218,7 @@ namespace {{packageName}}.{{apiPackage}}
218
218
var localVarPath = "{ {#netStandard} }.{ {/netStandard} }{ {{path} }}";
219
219
var localVarPathParams = new Dictionary<String , String >();
220
220
var localVarQueryParams = new List<KeyValuePair <String, String >>();
221
- var localVarHeaderParams = new Dictionary< String , String >( this.Configuration.DefaultHeader);
221
+ var localVarHeaderParams = this.Configuration.DefaultHeader.Union(headers).ToDictionary (k => k.Key, v => v.Value );
222
222
var localVarFormParams = new Dictionary<String , String >();
223
223
var localVarFileParams = new Dictionary<String , FileParameter >();
224
224
Object localVarPostBody = null;
0 commit comments