Skip to content

Commit da2a523

Browse files
committed
update samples
1 parent adafcb3 commit da2a523

File tree

41 files changed

+153
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+153
-102
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.19-SNAPSHOT
1+
2.4.44

samples/client/petstore/typescript-angular-v2/default/api/pet.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { Configuration } from '../configurat
3030
@Injectable()
3131
export class PetService {
3232

33-
protected basePath = 'https://petstore.swagger.io/v2';
33+
protected basePath = 'http://petstore.swagger.io/v2';
3434
public defaultHeaders = new Headers();
3535
public configuration = new Configuration();
3636

samples/client/petstore/typescript-angular-v2/default/api/store.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { Configuration } from '../configurat
2929
@Injectable()
3030
export class StoreService {
3131

32-
protected basePath = 'https://petstore.swagger.io/v2';
32+
protected basePath = 'http://petstore.swagger.io/v2';
3333
public defaultHeaders = new Headers();
3434
public configuration = new Configuration();
3535

samples/client/petstore/typescript-angular-v2/default/api/user.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { Configuration } from '../configurat
2929
@Injectable()
3030
export class UserService {
3131

32-
protected basePath = 'https://petstore.swagger.io/v2';
32+
protected basePath = 'http://petstore.swagger.io/v2';
3333
public defaultHeaders = new Headers();
3434
public configuration = new Configuration();
3535

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.19-SNAPSHOT
1+
2.4.44

samples/client/petstore/typescript-angular-v2/npm/api/pet.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { Configuration } from '../configurat
3030
@Injectable()
3131
export class PetService {
3232

33-
protected basePath = 'https://petstore.swagger.io/v2';
33+
protected basePath = 'http://petstore.swagger.io/v2';
3434
public defaultHeaders = new Headers();
3535
public configuration = new Configuration();
3636

samples/client/petstore/typescript-angular-v2/npm/api/store.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { Configuration } from '../configurat
2929
@Injectable()
3030
export class StoreService {
3131

32-
protected basePath = 'https://petstore.swagger.io/v2';
32+
protected basePath = 'http://petstore.swagger.io/v2';
3333
public defaultHeaders = new Headers();
3434
public configuration = new Configuration();
3535

samples/client/petstore/typescript-angular-v2/npm/api/user.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { Configuration } from '../configurat
2929
@Injectable()
3030
export class UserService {
3131

32-
protected basePath = 'https://petstore.swagger.io/v2';
32+
protected basePath = 'http://petstore.swagger.io/v2';
3333
public defaultHeaders = new Headers();
3434
public configuration = new Configuration();
3535

samples/client/petstore/typescript-angular-v2/npm/package.json

+4-13
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,18 @@
1414
"build": "ngc",
1515
"postinstall": "npm run build"
1616
},
17-
"peerDependencies": {
18-
"@angular/core": "^2.0.0",
19-
"@angular/http": "^2.0.0",
20-
"@angular/common": "^2.0.0",
21-
"@angular/compiler": "^2.0.0",
22-
"core-js": "^2.4.0",
23-
"reflect-metadata": "^0.1.3",
24-
"rxjs": "^5.4.0",
25-
"zone.js": "^0.7.6"
26-
},
2717
"devDependencies": {
2818
"@angular/compiler-cli": "^2.0.0",
2919
"@angular/core": "^2.0.0",
3020
"@angular/http": "^2.0.0",
3121
"@angular/common": "^2.0.0",
3222
"@angular/compiler": "^2.0.0",
3323
"@angular/platform-browser": "^2.0.0",
24+
"ng-packagr": "^3.0.6",
3425
"reflect-metadata": "^0.1.3",
35-
"rxjs": "^5.4.0",
36-
"zone.js": "^0.7.6",
37-
"typescript": ">=2.1.5 <2.8"
26+
"rxjs": "^6.1.0",
27+
"zone.js": "^0.8.26",
28+
"typescript": "^>=2.1.5 and <2.8"
3829
},
3930
"publishConfig": {
4031
"registry": "https://skimdb.npmjs.com/registry"
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.19-SNAPSHOT
1+
2.4.44

samples/client/petstore/typescript-angular-v2/with-interfaces/api/pet.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { PetServiceInterface } from './pet.serviceInt
3131
@Injectable()
3232
export class PetService implements PetServiceInterface {
3333

34-
protected basePath = 'https://petstore.swagger.io/v2';
34+
protected basePath = 'http://petstore.swagger.io/v2';
3535
public defaultHeaders = new Headers();
3636
public configuration = new Configuration();
3737

samples/client/petstore/typescript-angular-v2/with-interfaces/api/store.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { StoreServiceInterface } from './store.servic
3030
@Injectable()
3131
export class StoreService implements StoreServiceInterface {
3232

33-
protected basePath = 'https://petstore.swagger.io/v2';
33+
protected basePath = 'http://petstore.swagger.io/v2';
3434
public defaultHeaders = new Headers();
3535
public configuration = new Configuration();
3636

samples/client/petstore/typescript-angular-v2/with-interfaces/api/user.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { UserServiceInterface } from './user.serviceI
3030
@Injectable()
3131
export class UserService implements UserServiceInterface {
3232

33-
protected basePath = 'https://petstore.swagger.io/v2';
33+
protected basePath = 'http://petstore.swagger.io/v2';
3434
public defaultHeaders = new Headers();
3535
public configuration = new Configuration();
3636

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.19-SNAPSHOT
1+
2.4.44

samples/client/petstore/typescript-angular-v4.3/npm/api/pet.service.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { Configuration } from '../configurat
2828
@Injectable()
2929
export class PetService {
3030

31-
protected basePath = 'https://petstore.swagger.io/v2';
31+
protected basePath = 'http://petstore.swagger.io/v2';
3232
public defaultHeaders = new HttpHeaders();
3333
public configuration = new Configuration();
3434

@@ -106,6 +106,7 @@ export class PetService {
106106
return this.httpClient.post<any>(`${this.basePath}/pet`,
107107
body,
108108
{
109+
// not text :(
109110
withCredentials: this.configuration.withCredentials,
110111
headers: headers,
111112
observe: observe,
@@ -161,6 +162,7 @@ export class PetService {
161162

162163
return this.httpClient.delete<any>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}`,
163164
{
165+
// not text :(
164166
withCredentials: this.configuration.withCredentials,
165167
headers: headers,
166168
observe: observe,
@@ -217,6 +219,7 @@ export class PetService {
217219
return this.httpClient.get<Array<Pet>>(`${this.basePath}/pet/findByStatus`,
218220
{
219221
params: queryParameters,
222+
// not text :(
220223
withCredentials: this.configuration.withCredentials,
221224
headers: headers,
222225
observe: observe,
@@ -273,6 +276,7 @@ export class PetService {
273276
return this.httpClient.get<Array<Pet>>(`${this.basePath}/pet/findByTags`,
274277
{
275278
params: queryParameters,
279+
// not text :(
276280
withCredentials: this.configuration.withCredentials,
277281
headers: headers,
278282
observe: observe,
@@ -320,6 +324,7 @@ export class PetService {
320324

321325
return this.httpClient.get<Pet>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}`,
322326
{
327+
// not text :(
323328
withCredentials: this.configuration.withCredentials,
324329
headers: headers,
325330
observe: observe,
@@ -377,6 +382,7 @@ export class PetService {
377382
return this.httpClient.put<any>(`${this.basePath}/pet`,
378383
body,
379384
{
385+
// not text :(
380386
withCredentials: this.configuration.withCredentials,
381387
headers: headers,
382388
observe: observe,
@@ -451,6 +457,7 @@ export class PetService {
451457
return this.httpClient.post<any>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}`,
452458
convertFormParamsToString ? formParams.toString() : formParams,
453459
{
460+
// not text :(
454461
withCredentials: this.configuration.withCredentials,
455462
headers: headers,
456463
observe: observe,
@@ -527,6 +534,7 @@ export class PetService {
527534
return this.httpClient.post<ApiResponse>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
528535
convertFormParamsToString ? formParams.toString() : formParams,
529536
{
537+
// not text :(
530538
withCredentials: this.configuration.withCredentials,
531539
headers: headers,
532540
observe: observe,

samples/client/petstore/typescript-angular-v4.3/npm/api/store.service.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Configuration } from '../configurat
2727
@Injectable()
2828
export class StoreService {
2929

30-
protected basePath = 'https://petstore.swagger.io/v2';
30+
protected basePath = 'http://petstore.swagger.io/v2';
3131
public defaultHeaders = new HttpHeaders();
3232
public configuration = new Configuration();
3333

@@ -90,6 +90,7 @@ export class StoreService {
9090

9191
return this.httpClient.delete<any>(`${this.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
9292
{
93+
// not text :(
9394
withCredentials: this.configuration.withCredentials,
9495
headers: headers,
9596
observe: observe,
@@ -131,6 +132,7 @@ export class StoreService {
131132

132133
return this.httpClient.get<{ [key: string]: number; }>(`${this.basePath}/store/inventory`,
133134
{
135+
// not text :(
134136
withCredentials: this.configuration.withCredentials,
135137
headers: headers,
136138
observe: observe,
@@ -173,6 +175,7 @@ export class StoreService {
173175

174176
return this.httpClient.get<Order>(`${this.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
175177
{
178+
// not text :(
176179
withCredentials: this.configuration.withCredentials,
177180
headers: headers,
178181
observe: observe,
@@ -220,6 +223,7 @@ export class StoreService {
220223
return this.httpClient.post<Order>(`${this.basePath}/store/order`,
221224
body,
222225
{
226+
// not text :(
223227
withCredentials: this.configuration.withCredentials,
224228
headers: headers,
225229
observe: observe,

samples/client/petstore/typescript-angular-v4.3/npm/api/user.service.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Configuration } from '../configurat
2727
@Injectable()
2828
export class UserService {
2929

30-
protected basePath = 'https://petstore.swagger.io/v2';
30+
protected basePath = 'http://petstore.swagger.io/v2';
3131
public defaultHeaders = new HttpHeaders();
3232
public configuration = new Configuration();
3333

@@ -95,6 +95,7 @@ export class UserService {
9595
return this.httpClient.post<any>(`${this.basePath}/user`,
9696
body,
9797
{
98+
// not text :(
9899
withCredentials: this.configuration.withCredentials,
99100
headers: headers,
100101
observe: observe,
@@ -142,6 +143,7 @@ export class UserService {
142143
return this.httpClient.post<any>(`${this.basePath}/user/createWithArray`,
143144
body,
144145
{
146+
// not text :(
145147
withCredentials: this.configuration.withCredentials,
146148
headers: headers,
147149
observe: observe,
@@ -189,6 +191,7 @@ export class UserService {
189191
return this.httpClient.post<any>(`${this.basePath}/user/createWithList`,
190192
body,
191193
{
194+
// not text :(
192195
withCredentials: this.configuration.withCredentials,
193196
headers: headers,
194197
observe: observe,
@@ -231,6 +234,7 @@ export class UserService {
231234

232235
return this.httpClient.delete<any>(`${this.basePath}/user/${encodeURIComponent(String(username))}`,
233236
{
237+
// not text :(
234238
withCredentials: this.configuration.withCredentials,
235239
headers: headers,
236240
observe: observe,
@@ -273,6 +277,7 @@ export class UserService {
273277

274278
return this.httpClient.get<User>(`${this.basePath}/user/${encodeURIComponent(String(username))}`,
275279
{
280+
// not text :(
276281
withCredentials: this.configuration.withCredentials,
277282
headers: headers,
278283
observe: observe,
@@ -329,6 +334,7 @@ export class UserService {
329334
return this.httpClient.get<string>(`${this.basePath}/user/login`,
330335
{
331336
params: queryParameters,
337+
// not text :(
332338
withCredentials: this.configuration.withCredentials,
333339
headers: headers,
334340
observe: observe,
@@ -366,6 +372,7 @@ export class UserService {
366372

367373
return this.httpClient.get<any>(`${this.basePath}/user/logout`,
368374
{
375+
// not text :(
369376
withCredentials: this.configuration.withCredentials,
370377
headers: headers,
371378
observe: observe,
@@ -418,6 +425,7 @@ export class UserService {
418425
return this.httpClient.put<any>(`${this.basePath}/user/${encodeURIComponent(String(username))}`,
419426
body,
420427
{
428+
// not text :(
421429
withCredentials: this.configuration.withCredentials,
422430
headers: headers,
423431
observe: observe,

samples/client/petstore/typescript-angular-v4.3/npm/package.json

+4-14
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,18 @@
1010
"scripts": {
1111
"build": "ng-packagr -p ng-package.json"
1212
},
13-
"peerDependencies": {
14-
"@angular/core": "^4.3.0",
15-
"@angular/http": "^4.3.0",
16-
"@angular/common": "^4.3.0",
17-
"@angular/compiler": "^4.3.0",
18-
"core-js": "^2.4.0",
19-
"reflect-metadata": "^0.1.3",
20-
"rxjs": "^5.4.0",
21-
"zone.js": "^0.7.6"
22-
},
2313
"devDependencies": {
2414
"@angular/compiler-cli": "^4.3.0",
2515
"@angular/core": "^4.3.0",
2616
"@angular/http": "^4.3.0",
2717
"@angular/common": "^4.3.0",
2818
"@angular/compiler": "^4.3.0",
2919
"@angular/platform-browser": "^4.3.0",
30-
"ng-packagr": "^1.6.0",
20+
"ng-packagr": "^3.0.6",
3121
"reflect-metadata": "^0.1.3",
32-
"rxjs": "^5.4.0",
33-
"zone.js": "^0.7.6",
34-
"typescript": ">=2.1.5 <2.8"
22+
"rxjs": "^6.1.0",
23+
"zone.js": "^0.8.26",
24+
"typescript": "^>=2.1.5 and <2.8"
3525
},
3626
"publishConfig": {
3727
"registry": "https://skimdb.npmjs.com/registry"
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.19-SNAPSHOT
1+
2.4.44

0 commit comments

Comments
 (0)