@@ -170,7 +170,7 @@ export namespace MyNS {
170
170
* @return {Pet} successful operation
171
171
*/
172
172
Pet_petIdGet(petId: string): Promise<Pet> {
173
- return Axios.get<Pet>(this.baseUri + 'pet/' + petId, {}).then(d => {if (d.status<=204) return d.data) ; throw d;});
173
+ return Axios.get<Pet>(this.baseUri + 'pet/' + petId, {}).then(d => {if (d.status<=204) return d.data; throw d;});
174
174
}
175
175
176
176
/**
@@ -191,7 +191,7 @@ export namespace MyNS {
191
191
* @return {Array<Pet>} successful operation
192
192
*/
193
193
PetFindByStatusGetByStatus(status: Array<PetStatus>): Promise<Array<Pet>> {
194
- return Axios.get<Array<Pet>>(this.baseUri + 'pet/findByStatus?' + status.map(z => `status=${z}`).join('&'), {}).then(d => {if (d.status<=204) return d.data) ; throw d;});
194
+ return Axios.get<Array<Pet>>(this.baseUri + 'pet/findByStatus?' + status.map(z => `status=${z}`).join('&'), {}).then(d => {if (d.status<=204) return d.data; throw d;});
195
195
}
196
196
197
197
/**
@@ -202,7 +202,7 @@ export namespace MyNS {
202
202
* @return {Array<Pet>} successful operation
203
203
*/
204
204
PetFindByTagsGetByTags(tags: Array<string>): Promise<Array<Pet>> {
205
- return Axios.get<Array<Pet>>(this.baseUri + 'pet/findByTags?' + tags.map(z => `tags=${encodeURIComponent(z)}`).join('&'), {}).then(d => {if (d.status<=204) return d.data) ; throw d;});
205
+ return Axios.get<Array<Pet>>(this.baseUri + 'pet/findByTags?' + tags.map(z => `tags=${encodeURIComponent(z)}`).join('&'), {}).then(d => {if (d.status<=204) return d.data; throw d;});
206
206
}
207
207
208
208
/**
@@ -212,7 +212,7 @@ export namespace MyNS {
212
212
* @return {{[id: string]: number }} successful operation
213
213
*/
214
214
StoreInventoryGet(): Promise<{[id: string]: number }> {
215
- return Axios.get<{[id: string]: number }>(this.baseUri + 'store/inventory', {}).then(d => {if (d.status<=204) return d.data) ; throw d;});
215
+ return Axios.get<{[id: string]: number }>(this.baseUri + 'store/inventory', {}).then(d => {if (d.status<=204) return d.data; throw d;});
216
216
}
217
217
218
218
/**
@@ -222,7 +222,7 @@ export namespace MyNS {
222
222
* @return {Order} successful operation
223
223
*/
224
224
StoreOrderPost(requestBody: Order): Promise<Order> {
225
- return Axios.post<Order>(this.baseUri + 'store/order', JSON.stringify(requestBody), { headers: { 'Content-Type': 'application/json;charset=UTF-8' } }).then(d => {if (d.status<=204) return d.data) ; throw d;});
225
+ return Axios.post<Order>(this.baseUri + 'store/order', JSON.stringify(requestBody), { headers: { 'Content-Type': 'application/json;charset=UTF-8' } }).then(d => {if (d.status<=204) return d.data; throw d;});
226
226
}
227
227
228
228
/**
@@ -233,7 +233,7 @@ export namespace MyNS {
233
233
* @return {Order} successful operation
234
234
*/
235
235
StoreOrder_orderIdGet(orderId: string): Promise<Order> {
236
- return Axios.get<Order>(this.baseUri + 'store/order/' + orderId, {}).then(d => {if (d.status<=204) return d.data) ; throw d;});
236
+ return Axios.get<Order>(this.baseUri + 'store/order/' + orderId, {}).then(d => {if (d.status<=204) return d.data; throw d;});
237
237
}
238
238
239
239
/**
@@ -265,7 +265,7 @@ export namespace MyNS {
265
265
* @return {User} successful operation
266
266
*/
267
267
User_usernameGet(username: string): Promise<User> {
268
- return Axios.get<User>(this.baseUri + 'user/' + (username == null ? '' : encodeURIComponent(username)), {}).then(d => {if (d.status<=204) return d.data) ; throw d;});
268
+ return Axios.get<User>(this.baseUri + 'user/' + (username == null ? '' : encodeURIComponent(username)), {}).then(d => {if (d.status<=204) return d.data; throw d;});
269
269
}
270
270
271
271
/**
@@ -319,7 +319,7 @@ export namespace MyNS {
319
319
* @return {string} successful operation
320
320
*/
321
321
UserLoginGetByUsernameAndPassword(username: string, password: string): Promise<string> {
322
- return Axios.get(this.baseUri + 'user/login?username=' + (username == null ? '' : encodeURIComponent(username)) + '&password=' + (password == null ? '' : encodeURIComponent(password)), { responseType: 'text' }).then(d => {if (d.status<=204) return d.data) ; throw d;});
322
+ return Axios.get(this.baseUri + 'user/login?username=' + (username == null ? '' : encodeURIComponent(username)) + '&password=' + (password == null ? '' : encodeURIComponent(password)), { responseType: 'text' }).then(d => {if (d.status<=204) return d.data; throw d;});
323
323
}
324
324
325
325
/**
0 commit comments