mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-06 07:31:01 +00:00
Merge pull request #2811 from achew22/injection_ts
Update the injector static variable to contain all injected values.
This commit is contained in:
commit
7253375b13
@ -15,7 +15,7 @@ namespace {{package}} {
|
|||||||
protected basePath = '{{basePath}}';
|
protected basePath = '{{basePath}}';
|
||||||
public defaultHeaders : any = {};
|
public defaultHeaders : any = {};
|
||||||
|
|
||||||
static $inject: string[] = ['$http', '$httpParamSerializer'];
|
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||||
|
|
||||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||||
if (basePath) {
|
if (basePath) {
|
||||||
|
@ -9,7 +9,7 @@ namespace API.Client {
|
|||||||
protected basePath = 'http://petstore.swagger.io/v2';
|
protected basePath = 'http://petstore.swagger.io/v2';
|
||||||
public defaultHeaders : any = {};
|
public defaultHeaders : any = {};
|
||||||
|
|
||||||
static $inject: string[] = ['$http', '$httpParamSerializer'];
|
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||||
|
|
||||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||||
if (basePath) {
|
if (basePath) {
|
||||||
|
@ -9,7 +9,7 @@ namespace API.Client {
|
|||||||
protected basePath = 'http://petstore.swagger.io/v2';
|
protected basePath = 'http://petstore.swagger.io/v2';
|
||||||
public defaultHeaders : any = {};
|
public defaultHeaders : any = {};
|
||||||
|
|
||||||
static $inject: string[] = ['$http', '$httpParamSerializer'];
|
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||||
|
|
||||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||||
if (basePath) {
|
if (basePath) {
|
||||||
|
@ -9,7 +9,7 @@ namespace API.Client {
|
|||||||
protected basePath = 'http://petstore.swagger.io/v2';
|
protected basePath = 'http://petstore.swagger.io/v2';
|
||||||
public defaultHeaders : any = {};
|
public defaultHeaders : any = {};
|
||||||
|
|
||||||
static $inject: string[] = ['$http', '$httpParamSerializer'];
|
static $inject: string[] = ['$http', '$httpParamSerializer', 'basePath'];
|
||||||
|
|
||||||
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) {
|
||||||
if (basePath) {
|
if (basePath) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user