Skip to content

Commit e924070

Browse files
committed
update samples
1 parent 837f32d commit e924070

File tree

17 files changed

+22
-101
lines changed

17 files changed

+22
-101
lines changed

samples/client/petstore-security-test/typescript-angular2/api/fake.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ export class FakeService {
104104
return this.httpClient.put<any>(`${this.basePath}/fake`,
105105
convertFormParamsToString ? formParams.toString() : formParams,
106106
{
107-
// not text :(
108107
withCredentials: this.configuration.withCredentials,
109108
headers: headers,
110109
observe: observe,
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Swagger Petstore *_/ ' \" =end -- \\r\\n \\n \\r
3+
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end --
4+
*
5+
* OpenAPI spec version: 1.0.0 *_/ ' \" =end -- \\r\\n \\n \\r
6+
* Contact: [email protected] *_/ ' \" =end -- \\r\\n \\n \\r
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
/**
15+
* Model for testing reserved words *_/ ' \" =end -- \\r\\n \\n \\r
16+
*/
17+
export interface ModelReturn {
18+
/**
19+
* property description *_/ ' \" =end -- \\r\\n \\n \\r
20+
*/
21+
_return?: number;
22+
}

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ export class PetService {
106106
return this.httpClient.post<any>(`${this.basePath}/pet`,
107107
body,
108108
{
109-
// not text :(
110109
withCredentials: this.configuration.withCredentials,
111110
headers: headers,
112111
observe: observe,
@@ -162,7 +161,6 @@ export class PetService {
162161

163162
return this.httpClient.delete<any>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}`,
164163
{
165-
// not text :(
166164
withCredentials: this.configuration.withCredentials,
167165
headers: headers,
168166
observe: observe,
@@ -219,7 +217,6 @@ export class PetService {
219217
return this.httpClient.get<Array<Pet>>(`${this.basePath}/pet/findByStatus`,
220218
{
221219
params: queryParameters,
222-
// not text :(
223220
withCredentials: this.configuration.withCredentials,
224221
headers: headers,
225222
observe: observe,
@@ -276,7 +273,6 @@ export class PetService {
276273
return this.httpClient.get<Array<Pet>>(`${this.basePath}/pet/findByTags`,
277274
{
278275
params: queryParameters,
279-
// not text :(
280276
withCredentials: this.configuration.withCredentials,
281277
headers: headers,
282278
observe: observe,
@@ -324,7 +320,6 @@ export class PetService {
324320

325321
return this.httpClient.get<Pet>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}`,
326322
{
327-
// not text :(
328323
withCredentials: this.configuration.withCredentials,
329324
headers: headers,
330325
observe: observe,
@@ -382,7 +377,6 @@ export class PetService {
382377
return this.httpClient.put<any>(`${this.basePath}/pet`,
383378
body,
384379
{
385-
// not text :(
386380
withCredentials: this.configuration.withCredentials,
387381
headers: headers,
388382
observe: observe,
@@ -457,7 +451,6 @@ export class PetService {
457451
return this.httpClient.post<any>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}`,
458452
convertFormParamsToString ? formParams.toString() : formParams,
459453
{
460-
// not text :(
461454
withCredentials: this.configuration.withCredentials,
462455
headers: headers,
463456
observe: observe,
@@ -534,7 +527,6 @@ export class PetService {
534527
return this.httpClient.post<ApiResponse>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
535528
convertFormParamsToString ? formParams.toString() : formParams,
536529
{
537-
// not text :(
538530
withCredentials: this.configuration.withCredentials,
539531
headers: headers,
540532
observe: observe,

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ export class StoreService {
9090

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

133132
return this.httpClient.get<{ [key: string]: number; }>(`${this.basePath}/store/inventory`,
134133
{
135-
// not text :(
136134
withCredentials: this.configuration.withCredentials,
137135
headers: headers,
138136
observe: observe,
@@ -175,7 +173,6 @@ export class StoreService {
175173

176174
return this.httpClient.get<Order>(`${this.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
177175
{
178-
// not text :(
179176
withCredentials: this.configuration.withCredentials,
180177
headers: headers,
181178
observe: observe,
@@ -223,7 +220,6 @@ export class StoreService {
223220
return this.httpClient.post<Order>(`${this.basePath}/store/order`,
224221
body,
225222
{
226-
// not text :(
227223
withCredentials: this.configuration.withCredentials,
228224
headers: headers,
229225
observe: observe,

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export class UserService {
9595
return this.httpClient.post<any>(`${this.basePath}/user`,
9696
body,
9797
{
98-
// not text :(
9998
withCredentials: this.configuration.withCredentials,
10099
headers: headers,
101100
observe: observe,
@@ -143,7 +142,6 @@ export class UserService {
143142
return this.httpClient.post<any>(`${this.basePath}/user/createWithArray`,
144143
body,
145144
{
146-
// not text :(
147145
withCredentials: this.configuration.withCredentials,
148146
headers: headers,
149147
observe: observe,
@@ -191,7 +189,6 @@ export class UserService {
191189
return this.httpClient.post<any>(`${this.basePath}/user/createWithList`,
192190
body,
193191
{
194-
// not text :(
195192
withCredentials: this.configuration.withCredentials,
196193
headers: headers,
197194
observe: observe,
@@ -234,7 +231,6 @@ export class UserService {
234231

235232
return this.httpClient.delete<any>(`${this.basePath}/user/${encodeURIComponent(String(username))}`,
236233
{
237-
// not text :(
238234
withCredentials: this.configuration.withCredentials,
239235
headers: headers,
240236
observe: observe,
@@ -277,7 +273,6 @@ export class UserService {
277273

278274
return this.httpClient.get<User>(`${this.basePath}/user/${encodeURIComponent(String(username))}`,
279275
{
280-
// not text :(
281276
withCredentials: this.configuration.withCredentials,
282277
headers: headers,
283278
observe: observe,
@@ -334,7 +329,6 @@ export class UserService {
334329
return this.httpClient.get<string>(`${this.basePath}/user/login`,
335330
{
336331
params: queryParameters,
337-
// not text :(
338332
withCredentials: this.configuration.withCredentials,
339333
headers: headers,
340334
observe: observe,
@@ -372,7 +366,6 @@ export class UserService {
372366

373367
return this.httpClient.get<any>(`${this.basePath}/user/logout`,
374368
{
375-
// not text :(
376369
withCredentials: this.configuration.withCredentials,
377370
headers: headers,
378371
observe: observe,
@@ -425,7 +418,6 @@ export class UserService {
425418
return this.httpClient.put<any>(`${this.basePath}/user/${encodeURIComponent(String(username))}`,
426419
body,
427420
{
428-
// not text :(
429421
withCredentials: this.configuration.withCredentials,
430422
headers: headers,
431423
observe: observe,

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ export class PetService implements PetServiceInterface {
107107
return this.httpClient.post<any>(`${this.basePath}/pet`,
108108
body,
109109
{
110-
// not text :(
111110
withCredentials: this.configuration.withCredentials,
112111
headers: headers,
113112
observe: observe,
@@ -163,7 +162,6 @@ export class PetService implements PetServiceInterface {
163162

164163
return this.httpClient.delete<any>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}`,
165164
{
166-
// not text :(
167165
withCredentials: this.configuration.withCredentials,
168166
headers: headers,
169167
observe: observe,
@@ -220,7 +218,6 @@ export class PetService implements PetServiceInterface {
220218
return this.httpClient.get<Array<Pet>>(`${this.basePath}/pet/findByStatus`,
221219
{
222220
params: queryParameters,
223-
// not text :(
224221
withCredentials: this.configuration.withCredentials,
225222
headers: headers,
226223
observe: observe,
@@ -277,7 +274,6 @@ export class PetService implements PetServiceInterface {
277274
return this.httpClient.get<Array<Pet>>(`${this.basePath}/pet/findByTags`,
278275
{
279276
params: queryParameters,
280-
// not text :(
281277
withCredentials: this.configuration.withCredentials,
282278
headers: headers,
283279
observe: observe,
@@ -325,7 +321,6 @@ export class PetService implements PetServiceInterface {
325321

326322
return this.httpClient.get<Pet>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}`,
327323
{
328-
// not text :(
329324
withCredentials: this.configuration.withCredentials,
330325
headers: headers,
331326
observe: observe,
@@ -383,7 +378,6 @@ export class PetService implements PetServiceInterface {
383378
return this.httpClient.put<any>(`${this.basePath}/pet`,
384379
body,
385380
{
386-
// not text :(
387381
withCredentials: this.configuration.withCredentials,
388382
headers: headers,
389383
observe: observe,
@@ -458,7 +452,6 @@ export class PetService implements PetServiceInterface {
458452
return this.httpClient.post<any>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}`,
459453
convertFormParamsToString ? formParams.toString() : formParams,
460454
{
461-
// not text :(
462455
withCredentials: this.configuration.withCredentials,
463456
headers: headers,
464457
observe: observe,
@@ -535,7 +528,6 @@ export class PetService implements PetServiceInterface {
535528
return this.httpClient.post<ApiResponse>(`${this.basePath}/pet/${encodeURIComponent(String(petId))}/uploadImage`,
536529
convertFormParamsToString ? formParams.toString() : formParams,
537530
{
538-
// not text :(
539531
withCredentials: this.configuration.withCredentials,
540532
headers: headers,
541533
observe: observe,

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ export class StoreService implements StoreServiceInterface {
9191

9292
return this.httpClient.delete<any>(`${this.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
9393
{
94-
// not text :(
9594
withCredentials: this.configuration.withCredentials,
9695
headers: headers,
9796
observe: observe,
@@ -133,7 +132,6 @@ export class StoreService implements StoreServiceInterface {
133132

134133
return this.httpClient.get<{ [key: string]: number; }>(`${this.basePath}/store/inventory`,
135134
{
136-
// not text :(
137135
withCredentials: this.configuration.withCredentials,
138136
headers: headers,
139137
observe: observe,
@@ -176,7 +174,6 @@ export class StoreService implements StoreServiceInterface {
176174

177175
return this.httpClient.get<Order>(`${this.basePath}/store/order/${encodeURIComponent(String(orderId))}`,
178176
{
179-
// not text :(
180177
withCredentials: this.configuration.withCredentials,
181178
headers: headers,
182179
observe: observe,
@@ -224,7 +221,6 @@ export class StoreService implements StoreServiceInterface {
224221
return this.httpClient.post<Order>(`${this.basePath}/store/order`,
225222
body,
226223
{
227-
// not text :(
228224
withCredentials: this.configuration.withCredentials,
229225
headers: headers,
230226
observe: observe,

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export class UserService implements UserServiceInterface {
9696
return this.httpClient.post<any>(`${this.basePath}/user`,
9797
body,
9898
{
99-
// not text :(
10099
withCredentials: this.configuration.withCredentials,
101100
headers: headers,
102101
observe: observe,
@@ -144,7 +143,6 @@ export class UserService implements UserServiceInterface {
144143
return this.httpClient.post<any>(`${this.basePath}/user/createWithArray`,
145144
body,
146145
{
147-
// not text :(
148146
withCredentials: this.configuration.withCredentials,
149147
headers: headers,
150148
observe: observe,
@@ -192,7 +190,6 @@ export class UserService implements UserServiceInterface {
192190
return this.httpClient.post<any>(`${this.basePath}/user/createWithList`,
193191
body,
194192
{
195-
// not text :(
196193
withCredentials: this.configuration.withCredentials,
197194
headers: headers,
198195
observe: observe,
@@ -235,7 +232,6 @@ export class UserService implements UserServiceInterface {
235232

236233
return this.httpClient.delete<any>(`${this.basePath}/user/${encodeURIComponent(String(username))}`,
237234
{
238-
// not text :(
239235
withCredentials: this.configuration.withCredentials,
240236
headers: headers,
241237
observe: observe,
@@ -278,7 +274,6 @@ export class UserService implements UserServiceInterface {
278274

279275
return this.httpClient.get<User>(`${this.basePath}/user/${encodeURIComponent(String(username))}`,
280276
{
281-
// not text :(
282277
withCredentials: this.configuration.withCredentials,
283278
headers: headers,
284279
observe: observe,
@@ -335,7 +330,6 @@ export class UserService implements UserServiceInterface {
335330
return this.httpClient.get<string>(`${this.basePath}/user/login`,
336331
{
337332
params: queryParameters,
338-
// not text :(
339333
withCredentials: this.configuration.withCredentials,
340334
headers: headers,
341335
observe: observe,
@@ -373,7 +367,6 @@ export class UserService implements UserServiceInterface {
373367

374368
return this.httpClient.get<any>(`${this.basePath}/user/logout`,
375369
{
376-
// not text :(
377370
withCredentials: this.configuration.withCredentials,
378371
headers: headers,
379372
observe: observe,
@@ -426,7 +419,6 @@ export class UserService implements UserServiceInterface {
426419
return this.httpClient.put<any>(`${this.basePath}/user/${encodeURIComponent(String(username))}`,
427420
body,
428421
{
429-
// not text :(
430422
withCredentials: this.configuration.withCredentials,
431423
headers: headers,
432424
observe: observe,

0 commit comments

Comments
 (0)