|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +/** |
| 4 | + * OpenAPI Petstore |
| 5 | + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ |
| 6 | + * |
| 7 | + * The version of the OpenAPI document: 1.0.0 |
| 8 | + * |
| 9 | + * |
| 10 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 11 | + * https://openapi-generator.tech |
| 12 | + * Do not edit the class manually. |
| 13 | + */ |
| 14 | + |
| 15 | + |
| 16 | +import * as runtime from '../runtime'; |
| 17 | +import { |
| 18 | + Client, |
| 19 | + ClientFromJSON, |
| 20 | + ClientToJSON, |
| 21 | +} from '../models'; |
| 22 | + |
| 23 | +export interface 123testSpecialTagsRequest { |
| 24 | + client: Client; |
| 25 | +} |
| 26 | + |
| 27 | +/** |
| 28 | + * |
| 29 | + */ |
| 30 | +export class AnotherFakeApi extends runtime.BaseAPI { |
| 31 | + |
| 32 | + /** |
| 33 | + * To test special tags and operation ID starting with number |
| 34 | + * To test special tags |
| 35 | + */ |
| 36 | + async _123testSpecialTagsRaw(requestParameters: 123testSpecialTagsRequest): Promise<runtime.ApiResponse<Client>> { |
| 37 | + if (requestParameters.client === null || requestParameters.client === undefined) { |
| 38 | + throw new runtime.RequiredError('client','Required parameter requestParameters.client was null or undefined when calling _123testSpecialTags.'); |
| 39 | + } |
| 40 | + |
| 41 | + const queryParameters: any = {}; |
| 42 | + |
| 43 | + const headerParameters: runtime.HTTPHeaders = {}; |
| 44 | + |
| 45 | + headerParameters['Content-Type'] = 'application/json'; |
| 46 | + |
| 47 | + const response = await this.request({ |
| 48 | + path: `/another-fake/dummy`, |
| 49 | + method: 'PATCH', |
| 50 | + headers: headerParameters, |
| 51 | + query: queryParameters, |
| 52 | + body: ClientToJSON(requestParameters.client), |
| 53 | + }); |
| 54 | + |
| 55 | + return new runtime.JSONApiResponse(response, (jsonValue) => ClientFromJSON(jsonValue)); |
| 56 | + } |
| 57 | + |
| 58 | + /** |
| 59 | + * To test special tags and operation ID starting with number |
| 60 | + * To test special tags |
| 61 | + */ |
| 62 | + async _123testSpecialTags(requestParameters: 123testSpecialTagsRequest): Promise<Client> { |
| 63 | + const response = await this._123testSpecialTagsRaw(requestParameters); |
| 64 | + return await response.value(); |
| 65 | + } |
| 66 | + |
| 67 | +} |
0 commit comments