Slide 10
Slide 10 text
#phpcon_okinawa
/**
* Retrieves a list of all pets, with pagination options.
* @summary List all pets
* @param {number} [limit] How many items to return at one time (max 100)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listPets: async (limit?: number, options: RawAxiosRequestConfig = {}): Promise => {
const localVarPath = `/pets`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
if (limit !== undefined) {
localVarQueryParameter['limit'] = limit;
}
自動生成された
コード
generated/ts/api.ts 10