forked from loafle/openapi-generator-original
adds default headers
This commit is contained in:
parent
4ed819c4a0
commit
2b24aa8f91
@ -13,6 +13,7 @@ namespace {{package}} {
|
||||
{{/description}}
|
||||
export class {{classname}} {
|
||||
private basePath = '{{basePath}}';
|
||||
public defaultHeaders : any = {};
|
||||
|
||||
static $inject: string[] = ['$http', '$httpParamSerializer'];
|
||||
|
||||
@ -31,7 +32,7 @@ namespace {{package}} {
|
||||
|
||||
{{/pathParams}}
|
||||
let queryParameters: any = {};
|
||||
let headerParams: any = {};
|
||||
let headerParams: any = this.defaultHeaders;
|
||||
{{#hasFormParams}}
|
||||
let formParams: any = {};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user