Skip to content

Commit 6ecd336

Browse files
update samples
1 parent cb514a9 commit 6ecd336

208 files changed

Lines changed: 1186 additions & 1156 deletions

File tree

Some content is hidden

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

samples/client/petstore/java/apache-httpclient/api/openapi.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ paths:
158158
tags:
159159
- pet
160160
x-webclient-blocking: true
161-
x-accepts: "application/json,application/xml"
161+
x-accepts: application/json
162162
/pet/findByTags:
163163
get:
164164
deprecated: true
@@ -203,7 +203,7 @@ paths:
203203
tags:
204204
- pet
205205
x-webclient-blocking: true
206-
x-accepts: "application/json,application/xml"
206+
x-accepts: application/json
207207
/pet/{petId}:
208208
delete:
209209
description: ""
@@ -271,7 +271,7 @@ paths:
271271
tags:
272272
- pet
273273
x-webclient-blocking: true
274-
x-accepts: "application/json,application/xml"
274+
x-accepts: application/json
275275
post:
276276
description: ""
277277
operationId: updatePetWithForm
@@ -387,7 +387,7 @@ paths:
387387
tags:
388388
- store
389389
x-content-type: application/json
390-
x-accepts: "application/json,application/xml"
390+
x-accepts: application/json
391391
/store/order/{order_id}:
392392
delete:
393393
description: For valid response try integer IDs with value < 1000. Anything
@@ -444,7 +444,7 @@ paths:
444444
summary: Find purchase order by ID
445445
tags:
446446
- store
447-
x-accepts: "application/json,application/xml"
447+
x-accepts: application/json
448448
/user:
449449
post:
450450
description: This can only be done by the logged in user.
@@ -543,7 +543,7 @@ paths:
543543
summary: Logs user into the system
544544
tags:
545545
- user
546-
x-accepts: "application/json,application/xml"
546+
x-accepts: application/json
547547
/user/logout:
548548
get:
549549
description: ""
@@ -606,7 +606,7 @@ paths:
606606
summary: Get user by user name
607607
tags:
608608
- user
609-
x-accepts: "application/json,application/xml"
609+
x-accepts: application/json
610610
put:
611611
description: This can only be done by the logged in user.
612612
operationId: updateUser

samples/client/petstore/java/feign-no-nullable/api/openapi.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ paths:
127127
summary: Finds Pets by status
128128
tags:
129129
- pet
130-
x-accepts: "application/json,application/xml"
130+
x-accepts: application/json
131131
/pet/findByTags:
132132
get:
133133
deprecated: true
@@ -172,7 +172,7 @@ paths:
172172
summary: Finds Pets by tags
173173
tags:
174174
- pet
175-
x-accepts: "application/json,application/xml"
175+
x-accepts: application/json
176176
/pet/{petId}:
177177
delete:
178178
operationId: deletePet
@@ -235,7 +235,7 @@ paths:
235235
summary: Find pet by ID
236236
tags:
237237
- pet
238-
x-accepts: "application/json,application/xml"
238+
x-accepts: application/json
239239
post:
240240
operationId: updatePetWithForm
241241
parameters:
@@ -344,7 +344,7 @@ paths:
344344
- store
345345
x-codegen-request-body-name: body
346346
x-content-type: '*/*'
347-
x-accepts: "application/json,application/xml"
347+
x-accepts: application/json
348348
/store/order/{order_id}:
349349
delete:
350350
description: For valid response try integer IDs with value < 1000. Anything
@@ -401,7 +401,7 @@ paths:
401401
summary: Find purchase order by ID
402402
tags:
403403
- store
404-
x-accepts: "application/json,application/xml"
404+
x-accepts: application/json
405405
/user:
406406
post:
407407
description: This can only be done by the logged in user.
@@ -510,7 +510,7 @@ paths:
510510
summary: Logs user into the system
511511
tags:
512512
- user
513-
x-accepts: "application/json,application/xml"
513+
x-accepts: application/json
514514
/user/logout:
515515
get:
516516
operationId: logoutUser
@@ -572,7 +572,7 @@ paths:
572572
summary: Get user by user name
573573
tags:
574574
- user
575-
x-accepts: "application/json,application/xml"
575+
x-accepts: application/json
576576
put:
577577
description: This can only be done by the logged in user.
578578
operationId: updateUser

samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/PetApi.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public interface PetApi extends ApiClient.Api {
8383
*/
8484
@RequestLine("GET /pet/findByStatus?status={status}")
8585
@Headers({
86-
"Accept: application/json,application/xml",
86+
"Accept: application/json",
8787
})
8888
List<Pet> findPetsByStatus(@Param("status") List<String> status);
8989

@@ -96,7 +96,7 @@ public interface PetApi extends ApiClient.Api {
9696
*/
9797
@RequestLine("GET /pet/findByStatus?status={status}")
9898
@Headers({
99-
"Accept: application/json,application/xml",
99+
"Accept: application/json",
100100
})
101101
ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(@Param("status") List<String> status);
102102

@@ -118,7 +118,7 @@ public interface PetApi extends ApiClient.Api {
118118
*/
119119
@RequestLine("GET /pet/findByStatus?status={status}")
120120
@Headers({
121-
"Accept: application/json,application/xml",
121+
"Accept: application/json",
122122
})
123123
List<Pet> findPetsByStatus(@QueryMap(encoded=true) FindPetsByStatusQueryParams queryParams);
124124

@@ -136,7 +136,7 @@ public interface PetApi extends ApiClient.Api {
136136
*/
137137
@RequestLine("GET /pet/findByStatus?status={status}")
138138
@Headers({
139-
"Accept: application/json,application/xml",
139+
"Accept: application/json",
140140
})
141141
ApiResponse<List<Pet>> findPetsByStatusWithHttpInfo(@QueryMap(encoded=true) FindPetsByStatusQueryParams queryParams);
142142

@@ -162,7 +162,7 @@ public FindPetsByStatusQueryParams status(final List<String> value) {
162162
@Deprecated
163163
@RequestLine("GET /pet/findByTags?tags={tags}")
164164
@Headers({
165-
"Accept: application/json,application/xml",
165+
"Accept: application/json",
166166
})
167167
Set<Pet> findPetsByTags(@Param("tags") Set<String> tags);
168168

@@ -177,7 +177,7 @@ public FindPetsByStatusQueryParams status(final List<String> value) {
177177
@Deprecated
178178
@RequestLine("GET /pet/findByTags?tags={tags}")
179179
@Headers({
180-
"Accept: application/json,application/xml",
180+
"Accept: application/json",
181181
})
182182
ApiResponse<Set<Pet>> findPetsByTagsWithHttpInfo(@Param("tags") Set<String> tags);
183183

@@ -201,7 +201,7 @@ public FindPetsByStatusQueryParams status(final List<String> value) {
201201
@Deprecated
202202
@RequestLine("GET /pet/findByTags?tags={tags}")
203203
@Headers({
204-
"Accept: application/json,application/xml",
204+
"Accept: application/json",
205205
})
206206
Set<Pet> findPetsByTags(@QueryMap(encoded=true) FindPetsByTagsQueryParams queryParams);
207207

@@ -221,7 +221,7 @@ public FindPetsByStatusQueryParams status(final List<String> value) {
221221
@Deprecated
222222
@RequestLine("GET /pet/findByTags?tags={tags}")
223223
@Headers({
224-
"Accept: application/json,application/xml",
224+
"Accept: application/json",
225225
})
226226
ApiResponse<Set<Pet>> findPetsByTagsWithHttpInfo(@QueryMap(encoded=true) FindPetsByTagsQueryParams queryParams);
227227

@@ -245,7 +245,7 @@ public FindPetsByTagsQueryParams tags(final Set<String> value) {
245245
*/
246246
@RequestLine("GET /pet/{petId}")
247247
@Headers({
248-
"Accept: application/json,application/xml",
248+
"Accept: application/json",
249249
})
250250
Pet getPetById(@Param("petId") Long petId);
251251

@@ -258,7 +258,7 @@ public FindPetsByTagsQueryParams tags(final Set<String> value) {
258258
*/
259259
@RequestLine("GET /pet/{petId}")
260260
@Headers({
261-
"Accept: application/json,application/xml",
261+
"Accept: application/json",
262262
})
263263
ApiResponse<Pet> getPetByIdWithHttpInfo(@Param("petId") Long petId);
264264

samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/StoreApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public interface StoreApi extends ApiClient.Api {
7474
*/
7575
@RequestLine("GET /store/order/{orderId}")
7676
@Headers({
77-
"Accept: application/json,application/xml",
77+
"Accept: application/json",
7878
})
7979
Order getOrderById(@Param("orderId") Long orderId);
8080

@@ -87,7 +87,7 @@ public interface StoreApi extends ApiClient.Api {
8787
*/
8888
@RequestLine("GET /store/order/{orderId}")
8989
@Headers({
90-
"Accept: application/json,application/xml",
90+
"Accept: application/json",
9191
})
9292
ApiResponse<Order> getOrderByIdWithHttpInfo(@Param("orderId") Long orderId);
9393

@@ -102,7 +102,7 @@ public interface StoreApi extends ApiClient.Api {
102102
@RequestLine("POST /store/order")
103103
@Headers({
104104
"Content-Type: */*",
105-
"Accept: application/json,application/xml",
105+
"Accept: application/json",
106106
})
107107
Order placeOrder(Order body);
108108

@@ -116,7 +116,7 @@ public interface StoreApi extends ApiClient.Api {
116116
@RequestLine("POST /store/order")
117117
@Headers({
118118
"Content-Type: */*",
119-
"Accept: application/json,application/xml",
119+
"Accept: application/json",
120120
})
121121
ApiResponse<Order> placeOrderWithHttpInfo(Order body);
122122

samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/UserApi.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public interface UserApi extends ApiClient.Api {
131131
*/
132132
@RequestLine("GET /user/{username}")
133133
@Headers({
134-
"Accept: application/json,application/xml",
134+
"Accept: application/json",
135135
})
136136
User getUserByName(@Param("username") String username);
137137

@@ -144,7 +144,7 @@ public interface UserApi extends ApiClient.Api {
144144
*/
145145
@RequestLine("GET /user/{username}")
146146
@Headers({
147-
"Accept: application/json,application/xml",
147+
"Accept: application/json",
148148
})
149149
ApiResponse<User> getUserByNameWithHttpInfo(@Param("username") String username);
150150

@@ -159,7 +159,7 @@ public interface UserApi extends ApiClient.Api {
159159
*/
160160
@RequestLine("GET /user/login?username={username}&password={password}")
161161
@Headers({
162-
"Accept: application/json,application/xml",
162+
"Accept: application/json",
163163
})
164164
String loginUser(@Param("username") String username, @Param("password") String password);
165165

@@ -173,7 +173,7 @@ public interface UserApi extends ApiClient.Api {
173173
*/
174174
@RequestLine("GET /user/login?username={username}&password={password}")
175175
@Headers({
176-
"Accept: application/json,application/xml",
176+
"Accept: application/json",
177177
})
178178
ApiResponse<String> loginUserWithHttpInfo(@Param("username") String username, @Param("password") String password);
179179

@@ -196,7 +196,7 @@ public interface UserApi extends ApiClient.Api {
196196
*/
197197
@RequestLine("GET /user/login?username={username}&password={password}")
198198
@Headers({
199-
"Accept: application/json,application/xml",
199+
"Accept: application/json",
200200
})
201201
String loginUser(@QueryMap(encoded=true) LoginUserQueryParams queryParams);
202202

@@ -215,7 +215,7 @@ public interface UserApi extends ApiClient.Api {
215215
*/
216216
@RequestLine("GET /user/login?username={username}&password={password}")
217217
@Headers({
218-
"Accept: application/json,application/xml",
218+
"Accept: application/json",
219219
})
220220
ApiResponse<String> loginUserWithHttpInfo(@QueryMap(encoded=true) LoginUserQueryParams queryParams);
221221

samples/client/petstore/java/feign/api/openapi.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ paths:
158158
tags:
159159
- pet
160160
x-webclient-blocking: true
161-
x-accepts: "application/json,application/xml"
161+
x-accepts: application/json
162162
/pet/findByTags:
163163
get:
164164
deprecated: true
@@ -203,7 +203,7 @@ paths:
203203
tags:
204204
- pet
205205
x-webclient-blocking: true
206-
x-accepts: "application/json,application/xml"
206+
x-accepts: application/json
207207
/pet/{petId}:
208208
delete:
209209
description: ""
@@ -271,7 +271,7 @@ paths:
271271
tags:
272272
- pet
273273
x-webclient-blocking: true
274-
x-accepts: "application/json,application/xml"
274+
x-accepts: application/json
275275
post:
276276
description: ""
277277
operationId: updatePetWithForm
@@ -387,7 +387,7 @@ paths:
387387
tags:
388388
- store
389389
x-content-type: application/json
390-
x-accepts: "application/json,application/xml"
390+
x-accepts: application/json
391391
/store/order/{order_id}:
392392
delete:
393393
description: For valid response try integer IDs with value < 1000. Anything
@@ -444,7 +444,7 @@ paths:
444444
summary: Find purchase order by ID
445445
tags:
446446
- store
447-
x-accepts: "application/json,application/xml"
447+
x-accepts: application/json
448448
/user:
449449
post:
450450
description: This can only be done by the logged in user.
@@ -543,7 +543,7 @@ paths:
543543
summary: Logs user into the system
544544
tags:
545545
- user
546-
x-accepts: "application/json,application/xml"
546+
x-accepts: application/json
547547
/user/logout:
548548
get:
549549
description: ""
@@ -606,7 +606,7 @@ paths:
606606
summary: Get user by user name
607607
tags:
608608
- user
609-
x-accepts: "application/json,application/xml"
609+
x-accepts: application/json
610610
put:
611611
description: This can only be done by the logged in user.
612612
operationId: updateUser

0 commit comments

Comments
 (0)