Regenerate samples after merge

This commit is contained in:
Al Scott 2025-05-02 11:33:46 -06:00
parent 78b74c247a
commit 244190e5c8
4 changed files with 93 additions and 21 deletions

View File

@ -64,8 +64,11 @@ export class DefaultApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {}; const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/test-array`;
const response = await this.request({ const response = await this.request({
path: `/test-array`, path: urlPath,
method: 'GET', method: 'GET',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,

View File

@ -90,8 +90,11 @@ export class PetApi extends runtime.BaseAPI {
headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]); headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]);
} }
let urlPath = `/pet`;
const response = await this.request({ const response = await this.request({
path: `/pet`, path: urlPath,
method: 'POST', method: 'POST',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -135,8 +138,12 @@ export class PetApi extends runtime.BaseAPI {
headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]); headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]);
} }
let urlPath = `/pet/{petId}`;
urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId'])));
const response = await this.request({ const response = await this.request({
path: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))), path: urlPath,
method: 'DELETE', method: 'DELETE',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -178,8 +185,11 @@ export class PetApi extends runtime.BaseAPI {
headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["read:pets"]); headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["read:pets"]);
} }
let urlPath = `/pet/findByStatus`;
const response = await this.request({ const response = await this.request({
path: `/pet/findByStatus`, path: urlPath,
method: 'GET', method: 'GET',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -223,8 +233,11 @@ export class PetApi extends runtime.BaseAPI {
headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["read:pets"]); headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["read:pets"]);
} }
let urlPath = `/pet/findByTags`;
const response = await this.request({ const response = await this.request({
path: `/pet/findByTags`, path: urlPath,
method: 'GET', method: 'GET',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -263,8 +276,12 @@ export class PetApi extends runtime.BaseAPI {
headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
} }
let urlPath = `/pet/{petId}`;
urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId'])));
const response = await this.request({ const response = await this.request({
path: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))), path: urlPath,
method: 'GET', method: 'GET',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -305,8 +322,11 @@ export class PetApi extends runtime.BaseAPI {
headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]); headerParameters["Authorization"] = await this.configuration.accessToken("petstore_auth", ["write:pets", "read:pets"]);
} }
let urlPath = `/pet`;
const response = await this.request({ const response = await this.request({
path: `/pet`, path: urlPath,
method: 'PUT', method: 'PUT',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -368,8 +388,12 @@ export class PetApi extends runtime.BaseAPI {
formParams.append('status', requestParameters['status'] as any); formParams.append('status', requestParameters['status'] as any);
} }
let urlPath = `/pet/{petId}`;
urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId'])));
const response = await this.request({ const response = await this.request({
path: `/pet/{petId}`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))), path: urlPath,
method: 'POST', method: 'POST',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -432,8 +456,12 @@ export class PetApi extends runtime.BaseAPI {
formParams.append('file', requestParameters['file'] as any); formParams.append('file', requestParameters['file'] as any);
} }
let urlPath = `/pet/{petId}/uploadImage`;
urlPath = urlPath.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId'])));
const response = await this.request({ const response = await this.request({
path: `/pet/{petId}/uploadImage`.replace(`{${"petId"}}`, encodeURIComponent(String(requestParameters['petId']))), path: urlPath,
method: 'POST', method: 'POST',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,

View File

@ -55,8 +55,12 @@ export class StoreApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {}; const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/store/order/{orderId}`;
urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId'])));
const response = await this.request({ const response = await this.request({
path: `/store/order/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))), path: urlPath,
method: 'DELETE', method: 'DELETE',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -86,8 +90,11 @@ export class StoreApi extends runtime.BaseAPI {
headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
} }
let urlPath = `/store/inventory`;
const response = await this.request({ const response = await this.request({
path: `/store/inventory`, path: urlPath,
method: 'GET', method: 'GET',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -121,8 +128,12 @@ export class StoreApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {}; const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/store/order/{orderId}`;
urlPath = urlPath.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId'])));
const response = await this.request({ const response = await this.request({
path: `/store/order/{orderId}`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))), path: urlPath,
method: 'GET', method: 'GET',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -158,8 +169,11 @@ export class StoreApi extends runtime.BaseAPI {
headerParameters['Content-Type'] = 'application/json'; headerParameters['Content-Type'] = 'application/json';
let urlPath = `/store/order`;
const response = await this.request({ const response = await this.request({
path: `/store/order`, path: urlPath,
method: 'POST', method: 'POST',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,

View File

@ -79,8 +79,11 @@ export class UserApi extends runtime.BaseAPI {
headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
} }
let urlPath = `/user`;
const response = await this.request({ const response = await this.request({
path: `/user`, path: urlPath,
method: 'POST', method: 'POST',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -120,8 +123,11 @@ export class UserApi extends runtime.BaseAPI {
headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
} }
let urlPath = `/user/createWithArray`;
const response = await this.request({ const response = await this.request({
path: `/user/createWithArray`, path: urlPath,
method: 'POST', method: 'POST',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -161,8 +167,11 @@ export class UserApi extends runtime.BaseAPI {
headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
} }
let urlPath = `/user/createWithList`;
const response = await this.request({ const response = await this.request({
path: `/user/createWithList`, path: urlPath,
method: 'POST', method: 'POST',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -200,8 +209,12 @@ export class UserApi extends runtime.BaseAPI {
headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
} }
let urlPath = `/user/{username}`;
urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username'])));
const response = await this.request({ const response = await this.request({
path: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))), path: urlPath,
method: 'DELETE', method: 'DELETE',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -234,8 +247,12 @@ export class UserApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {}; const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/user/{username}`;
urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username'])));
const response = await this.request({ const response = await this.request({
path: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))), path: urlPath,
method: 'GET', method: 'GET',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -284,8 +301,11 @@ export class UserApi extends runtime.BaseAPI {
const headerParameters: runtime.HTTPHeaders = {}; const headerParameters: runtime.HTTPHeaders = {};
let urlPath = `/user/login`;
const response = await this.request({ const response = await this.request({
path: `/user/login`, path: urlPath,
method: 'GET', method: 'GET',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -320,8 +340,11 @@ export class UserApi extends runtime.BaseAPI {
headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
} }
let urlPath = `/user/logout`;
const response = await this.request({ const response = await this.request({
path: `/user/logout`, path: urlPath,
method: 'GET', method: 'GET',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,
@ -367,8 +390,12 @@ export class UserApi extends runtime.BaseAPI {
headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication headerParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
} }
let urlPath = `/user/{username}`;
urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username'])));
const response = await this.request({ const response = await this.request({
path: `/user/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username']))), path: urlPath,
method: 'PUT', method: 'PUT',
headers: headerParameters, headers: headerParameters,
query: queryParameters, query: queryParameters,