diff --git a/samples/Dressca/dressca-frontend/src/generated/api-client/.openapi-generator/FILES b/samples/Dressca/dressca-frontend/src/generated/api-client/.openapi-generator/FILES index 006390142..47b852586 100644 --- a/samples/Dressca/dressca-frontend/src/generated/api-client/.openapi-generator/FILES +++ b/samples/Dressca/dressca-frontend/src/generated/api-client/.openapi-generator/FILES @@ -6,6 +6,7 @@ api/basket-items-api.ts api/catalog-brands-api.ts api/catalog-categories-api.ts api/catalog-items-api.ts +api/health-checks-api.ts api/orders-api.ts base.ts common.ts diff --git a/samples/Dressca/dressca-frontend/src/generated/api-client/api.ts b/samples/Dressca/dressca-frontend/src/generated/api-client/api.ts index 183d97e46..2badf2de3 100644 --- a/samples/Dressca/dressca-frontend/src/generated/api-client/api.ts +++ b/samples/Dressca/dressca-frontend/src/generated/api-client/api.ts @@ -19,5 +19,6 @@ export * from './api/basket-items-api'; export * from './api/catalog-brands-api'; export * from './api/catalog-categories-api'; export * from './api/catalog-items-api'; +export * from './api/health-checks-api'; export * from './api/orders-api'; diff --git a/samples/Dressca/dressca-frontend/src/generated/api-client/api/health-checks-api.ts b/samples/Dressca/dressca-frontend/src/generated/api-client/api/health-checks-api.ts new file mode 100644 index 000000000..212da96d7 --- /dev/null +++ b/samples/Dressca/dressca-frontend/src/generated/api-client/api/health-checks-api.ts @@ -0,0 +1,170 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Dressca Web API + * Dressca の Web API 仕様 + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import { Configuration } from '../configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +/** + * HealthChecksApi - axios parameter creator + * @export + */ +export const HealthChecksApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + healthChecksApiHealthGET: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/health`; + // 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; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + healthChecksApiHealthHEAD: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/health`; + // 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: 'HEAD', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * HealthChecksApi - functional programming interface + * @export + */ +export const HealthChecksApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = HealthChecksApiAxiosParamCreator(configuration) + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async healthChecksApiHealthGET(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.healthChecksApiHealthGET(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async healthChecksApiHealthHEAD(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.healthChecksApiHealthHEAD(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * HealthChecksApi - factory interface + * @export + */ +export const HealthChecksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = HealthChecksApiFp(configuration) + return { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + healthChecksApiHealthGET(options?: any): AxiosPromise { + return localVarFp.healthChecksApiHealthGET(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + healthChecksApiHealthHEAD(options?: any): AxiosPromise { + return localVarFp.healthChecksApiHealthHEAD(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * HealthChecksApi - object-oriented interface + * @export + * @class HealthChecksApi + * @extends {BaseAPI} + */ +export class HealthChecksApi extends BaseAPI { + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthChecksApi + */ + public healthChecksApiHealthGET(options?: AxiosRequestConfig) { + return HealthChecksApiFp(this.configuration).healthChecksApiHealthGET(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthChecksApi + */ + public healthChecksApiHealthHEAD(options?: AxiosRequestConfig) { + return HealthChecksApiFp(this.configuration).healthChecksApiHealthHEAD(options).then((request) => request(this.axios, this.basePath)); + } +}