@@ -11,10 +11,20 @@ const injectedRtkApi = api.injectEndpoints({
11
11
query: (queryArg) => ({ url: \`/pet\`, method: 'POST', body: queryArg.pet }),
12
12
}),
13
13
findPetsByStatus: build.query<FindPetsByStatusApiResponse, FindPetsByStatusApiArg>({
14
- query: (queryArg) => ({ url: \`/pet/findByStatus\`, params: { status: queryArg.status } }),
14
+ query: (queryArg) => ({
15
+ url: \`/pet/findByStatus\`,
16
+ params: {
17
+ status: queryArg.status,
18
+ },
19
+ }),
15
20
}),
16
21
findPetsByTags: build.query<FindPetsByTagsApiResponse, FindPetsByTagsApiArg>({
17
- query: (queryArg) => ({ url: \`/pet/findByTags\`, params: { tags: queryArg.tags } }),
22
+ query: (queryArg) => ({
23
+ url: \`/pet/findByTags\`,
24
+ params: {
25
+ tags: queryArg.tags,
26
+ },
27
+ }),
18
28
}),
19
29
getPetById: build.query<GetPetByIdApiResponse, GetPetByIdApiArg>({
20
30
query: (queryArg) => ({ url: \`/pet/\${queryArg.petId}\` }),
@@ -23,18 +33,29 @@ const injectedRtkApi = api.injectEndpoints({
23
33
query: (queryArg) => ({
24
34
url: \`/pet/\${queryArg.petId}\`,
25
35
method: 'POST',
26
- params: { name: queryArg.name, status: queryArg.status },
36
+ params: {
37
+ name: queryArg.name,
38
+ status: queryArg.status,
39
+ },
27
40
}),
28
41
}),
29
42
deletePet: build.mutation<DeletePetApiResponse, DeletePetApiArg>({
30
- query: (queryArg) => ({ url: \`/pet/\${queryArg.petId}\`, method: 'DELETE', headers: { api_key: queryArg.apiKey } }),
43
+ query: (queryArg) => ({
44
+ url: \`/pet/\${queryArg.petId}\`,
45
+ method: 'DELETE',
46
+ headers: {
47
+ api_key: queryArg.apiKey,
48
+ },
49
+ }),
31
50
}),
32
51
uploadFile: build.mutation<UploadFileApiResponse, UploadFileApiArg>({
33
52
query: (queryArg) => ({
34
53
url: \`/pet/\${queryArg.petId}/uploadImage\`,
35
54
method: 'POST',
36
55
body: queryArg.body,
37
- params: { additionalMetadata: queryArg.additionalMetadata },
56
+ params: {
57
+ additionalMetadata: queryArg.additionalMetadata,
58
+ },
38
59
}),
39
60
}),
40
61
getInventory: build.query<GetInventoryApiResponse, GetInventoryApiArg>({
@@ -58,7 +79,10 @@ const injectedRtkApi = api.injectEndpoints({
58
79
loginUser: build.query<LoginUserApiResponse, LoginUserApiArg>({
59
80
query: (queryArg) => ({
60
81
url: \`/user/login\`,
61
- params: { username: queryArg.username, password: queryArg.password },
82
+ params: {
83
+ username: queryArg.username,
84
+ password: queryArg.password,
85
+ },
62
86
}),
63
87
}),
64
88
logoutUser: build.query<LogoutUserApiResponse, LogoutUserApiArg>({
@@ -234,10 +258,20 @@ const injectedRtkApi = api.injectEndpoints({
234
258
query: (queryArg) => ({ url: \`/pet\`, method: 'POST', body: queryArg.pet }),
235
259
}),
236
260
findPetsByStatus: build.query<FindPetsByStatusApiResponse, FindPetsByStatusApiArg>({
237
- query: (queryArg) => ({ url: \`/pet/findByStatus\`, params: { status: queryArg.status } }),
261
+ query: (queryArg) => ({
262
+ url: \`/pet/findByStatus\`,
263
+ params: {
264
+ status: queryArg.status,
265
+ },
266
+ }),
238
267
}),
239
268
findPetsByTags: build.query<FindPetsByTagsApiResponse, FindPetsByTagsApiArg>({
240
- query: (queryArg) => ({ url: \`/pet/findByTags\`, params: { tags: queryArg.tags } }),
269
+ query: (queryArg) => ({
270
+ url: \`/pet/findByTags\`,
271
+ params: {
272
+ tags: queryArg.tags,
273
+ },
274
+ }),
241
275
}),
242
276
getPetById: build.query<GetPetByIdApiResponse, GetPetByIdApiArg>({
243
277
query: (queryArg) => ({ url: \`/pet/\${queryArg.petId}\` }),
@@ -246,18 +280,29 @@ const injectedRtkApi = api.injectEndpoints({
246
280
query: (queryArg) => ({
247
281
url: \`/pet/\${queryArg.petId}\`,
248
282
method: 'POST',
249
- params: { name: queryArg.name, status: queryArg.status },
283
+ params: {
284
+ name: queryArg.name,
285
+ status: queryArg.status,
286
+ },
250
287
}),
251
288
}),
252
289
deletePet: build.mutation<DeletePetApiResponse, DeletePetApiArg>({
253
- query: (queryArg) => ({ url: \`/pet/\${queryArg.petId}\`, method: 'DELETE', headers: { api_key: queryArg.apiKey } }),
290
+ query: (queryArg) => ({
291
+ url: \`/pet/\${queryArg.petId}\`,
292
+ method: 'DELETE',
293
+ headers: {
294
+ api_key: queryArg.apiKey,
295
+ },
296
+ }),
254
297
}),
255
298
uploadFile: build.mutation<UploadFileApiResponse, UploadFileApiArg>({
256
299
query: (queryArg) => ({
257
300
url: \`/pet/\${queryArg.petId}/uploadImage\`,
258
301
method: 'POST',
259
302
body: queryArg.body,
260
- params: { additionalMetadata: queryArg.additionalMetadata },
303
+ params: {
304
+ additionalMetadata: queryArg.additionalMetadata,
305
+ },
261
306
}),
262
307
}),
263
308
getInventory: build.query<GetInventoryApiResponse, GetInventoryApiArg>({
@@ -281,7 +326,10 @@ const injectedRtkApi = api.injectEndpoints({
281
326
loginUser: build.query<LoginUserApiResponse, LoginUserApiArg>({
282
327
query: (queryArg) => ({
283
328
url: \`/user/login\`,
284
- params: { username: queryArg.username, password: queryArg.password },
329
+ params: {
330
+ username: queryArg.username,
331
+ password: queryArg.password,
332
+ },
285
333
}),
286
334
}),
287
335
logoutUser: build.query<LogoutUserApiResponse, LogoutUserApiArg>({
0 commit comments