objA;
+ }
/**
* Create user
@@ -213,9 +228,13 @@ export class UserApi {
method: RequestMethod.Post,
headers: headers,
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
- search: queryParameters,
- responseType: ResponseContentType.Json
+ search: queryParameters
});
+
+ // https://github.com/swagger-api/swagger-codegen/issues/4037
+ if (extraHttpRequestParams) {
+ requestOptions = this.extendObj(requestOptions, extraHttpRequestParams);
+ }
return this.http.request(path, requestOptions);
}
@@ -251,9 +270,13 @@ export class UserApi {
method: RequestMethod.Post,
headers: headers,
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
- search: queryParameters,
- responseType: ResponseContentType.Json
+ search: queryParameters
});
+
+ // https://github.com/swagger-api/swagger-codegen/issues/4037
+ if (extraHttpRequestParams) {
+ requestOptions = this.extendObj(requestOptions, extraHttpRequestParams);
+ }
return this.http.request(path, requestOptions);
}
@@ -289,9 +312,13 @@ export class UserApi {
method: RequestMethod.Post,
headers: headers,
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
- search: queryParameters,
- responseType: ResponseContentType.Json
+ search: queryParameters
});
+
+ // https://github.com/swagger-api/swagger-codegen/issues/4037
+ if (extraHttpRequestParams) {
+ requestOptions = this.extendObj(requestOptions, extraHttpRequestParams);
+ }
return this.http.request(path, requestOptions);
}
@@ -329,9 +356,13 @@ export class UserApi {
let requestOptions: RequestOptionsArgs = new RequestOptions({
method: RequestMethod.Delete,
headers: headers,
- search: queryParameters,
- responseType: ResponseContentType.Json
+ search: queryParameters
});
+
+ // https://github.com/swagger-api/swagger-codegen/issues/4037
+ if (extraHttpRequestParams) {
+ requestOptions = this.extendObj(requestOptions, extraHttpRequestParams);
+ }
return this.http.request(path, requestOptions);
}
@@ -369,9 +400,13 @@ export class UserApi {
let requestOptions: RequestOptionsArgs = new RequestOptions({
method: RequestMethod.Get,
headers: headers,
- search: queryParameters,
- responseType: ResponseContentType.Json
+ search: queryParameters
});
+
+ // https://github.com/swagger-api/swagger-codegen/issues/4037
+ if (extraHttpRequestParams) {
+ requestOptions = this.extendObj(requestOptions, extraHttpRequestParams);
+ }
return this.http.request(path, requestOptions);
}
@@ -412,9 +447,13 @@ export class UserApi {
let requestOptions: RequestOptionsArgs = new RequestOptions({
method: RequestMethod.Get,
headers: headers,
- search: queryParameters,
- responseType: ResponseContentType.Json
+ search: queryParameters
});
+
+ // https://github.com/swagger-api/swagger-codegen/issues/4037
+ if (extraHttpRequestParams) {
+ requestOptions = this.extendObj(requestOptions, extraHttpRequestParams);
+ }
return this.http.request(path, requestOptions);
}
@@ -447,9 +486,13 @@ export class UserApi {
let requestOptions: RequestOptionsArgs = new RequestOptions({
method: RequestMethod.Get,
headers: headers,
- search: queryParameters,
- responseType: ResponseContentType.Json
+ search: queryParameters
});
+
+ // https://github.com/swagger-api/swagger-codegen/issues/4037
+ if (extraHttpRequestParams) {
+ requestOptions = this.extendObj(requestOptions, extraHttpRequestParams);
+ }
return this.http.request(path, requestOptions);
}
@@ -490,9 +533,13 @@ export class UserApi {
method: RequestMethod.Put,
headers: headers,
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
- search: queryParameters,
- responseType: ResponseContentType.Json
+ search: queryParameters
});
+
+ // https://github.com/swagger-api/swagger-codegen/issues/4037
+ if (extraHttpRequestParams) {
+ requestOptions = this.extendObj(requestOptions, extraHttpRequestParams);
+ }
return this.http.request(path, requestOptions);
}
diff --git a/samples/client/petstore/typescript-angular2/npm/package.json b/samples/client/petstore/typescript-angular2/npm/package.json
index f5386456da9..0bd97a1b43c 100644
--- a/samples/client/petstore/typescript-angular2/npm/package.json
+++ b/samples/client/petstore/typescript-angular2/npm/package.json
@@ -1,6 +1,6 @@
{
"name": "@swagger/angular2-typescript-petstore",
- "version": "0.0.1-SNAPSHOT.201609212006",
+ "version": "0.0.1-SNAPSHOT.201610271623",
"description": "swagger client for @swagger/angular2-typescript-petstore",
"author": "Swagger Codegen Contributors",
"keywords": [
diff --git a/samples/html/index.html b/samples/html/index.html
index 425b46386d2..850fa5752d0 100644
--- a/samples/html/index.html
+++ b/samples/html/index.html
@@ -355,18 +355,18 @@ font-style: italic;
Example data
Content-Type: application/json
[ {
- "tags" : [ {
- "id" : 123456789,
- "name" : "aeiou"
- } ],
+ "photoUrls" : [ "aeiou" ],
+ "name" : "doggie",
"id" : 123456789,
"category" : {
- "id" : 123456789,
- "name" : "aeiou"
+ "name" : "aeiou",
+ "id" : 123456789
},
- "status" : "aeiou",
- "name" : "doggie",
- "photoUrls" : [ "aeiou" ]
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 123456789
+ } ],
+ "status" : "aeiou"
} ]
Produces
@@ -428,18 +428,18 @@ font-style: italic;
Example data
Content-Type: application/json
[ {
- "tags" : [ {
- "id" : 123456789,
- "name" : "aeiou"
- } ],
+ "photoUrls" : [ "aeiou" ],
+ "name" : "doggie",
"id" : 123456789,
"category" : {
- "id" : 123456789,
- "name" : "aeiou"
+ "name" : "aeiou",
+ "id" : 123456789
},
- "status" : "aeiou",
- "name" : "doggie",
- "photoUrls" : [ "aeiou" ]
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 123456789
+ } ],
+ "status" : "aeiou"
} ]
Produces
@@ -501,18 +501,18 @@ font-style: italic;
Example data
Content-Type: application/json
{
- "tags" : [ {
- "id" : 123456789,
- "name" : "aeiou"
- } ],
+ "photoUrls" : [ "aeiou" ],
+ "name" : "doggie",
"id" : 123456789,
"category" : {
- "id" : 123456789,
- "name" : "aeiou"
+ "name" : "aeiou",
+ "id" : 123456789
},
- "status" : "aeiou",
- "name" : "doggie",
- "photoUrls" : [ "aeiou" ]
+ "tags" : [ {
+ "name" : "aeiou",
+ "id" : 123456789
+ } ],
+ "status" : "aeiou"
}
Produces
@@ -677,9 +677,9 @@ font-style: italic;
Example data
Content-Type: application/json
{
- "message" : "aeiou",
"code" : 123,
- "type" : "aeiou"
+ "type" : "aeiou",
+ "message" : "aeiou"
}
Produces
@@ -816,12 +816,12 @@ font-style: italic;
Example data
Content-Type: application/json
{
- "id" : 123456789,
"petId" : 123456789,
- "complete" : true,
- "status" : "aeiou",
"quantity" : 123,
- "shipDate" : "2000-01-23T04:56:07.000+00:00"
+ "id" : 123456789,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "complete" : true,
+ "status" : "aeiou"
}
Produces
@@ -884,12 +884,12 @@ font-style: italic;
Example data
Content-Type: application/json
{
- "id" : 123456789,
"petId" : 123456789,
- "complete" : true,
- "status" : "aeiou",
"quantity" : 123,
- "shipDate" : "2000-01-23T04:56:07.000+00:00"
+ "id" : 123456789,
+ "shipDate" : "2000-01-23T04:56:07.000+00:00",
+ "complete" : true,
+ "status" : "aeiou"
}
Produces
@@ -1103,14 +1103,14 @@ font-style: italic;
Example data
Content-Type: application/json
{
- "id" : 123456789,
- "lastName" : "aeiou",
- "phone" : "aeiou",
- "username" : "aeiou",
- "email" : "aeiou",
- "userStatus" : 123,
"firstName" : "aeiou",
- "password" : "aeiou"
+ "lastName" : "aeiou",
+ "password" : "aeiou",
+ "userStatus" : 123,
+ "phone" : "aeiou",
+ "id" : 123456789,
+ "email" : "aeiou",
+ "username" : "aeiou"
}
Produces
diff --git a/samples/html2/index.html b/samples/html2/index.html
index f454250971e..d9fba0bb5e5 100644
--- a/samples/html2/index.html
+++ b/samples/html2/index.html
@@ -9941,7 +9941,7 @@ try {
- Generated 2016-10-17T21:36:47.443+11:00
+ Generated 2016-10-29T22:48:30.116+11:00