From fefb206d97d7b9db61d53a6462cfed9e9b44d332 Mon Sep 17 00:00:00 2001 From: RudiThoeni Date: Thu, 9 Jan 2025 15:20:05 +0100 Subject: [PATCH] adding origin to each api call --- src/api/apis/common-api.ts | 37 ++++++++++++++++++++++++++++- src/api/apis/location-api.ts | 3 ++- src/api/apis/odhactivity-poi-api.ts | 6 ++++- src/api/apis/odhtag-api.ts | 4 +++- src/api/apis/tag-api.ts | 4 +++- src/api/apis/weather-api.ts | 14 ++++++++++- src/api/apis/webcam-info-api.ts | 4 +++- src/api/base.ts | 1 + 8 files changed, 66 insertions(+), 7 deletions(-) diff --git a/src/api/apis/common-api.ts b/src/api/apis/common-api.ts index e831ce0..800f60d 100644 --- a/src/api/apis/common-api.ts +++ b/src/api/apis/common-api.ts @@ -15,7 +15,7 @@ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'a import { Configuration } from '../configuration'; // Some imports not used depending on template conditions // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +import { BASE_PATH, ORIGIN, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; import { AreaLinked } from '../models'; import { DistrictLinked } from '../models'; import { ExperienceAreaLinked } from '../models'; @@ -59,6 +59,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -123,6 +125,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -187,6 +191,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -251,6 +257,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -315,6 +323,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -379,6 +389,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -443,6 +455,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -507,6 +521,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -571,6 +587,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -635,6 +653,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -707,6 +727,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -839,6 +861,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -987,6 +1011,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -1134,6 +1160,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -1278,6 +1306,8 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; + // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -1425,6 +1455,7 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -1568,6 +1599,7 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -1708,6 +1740,7 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -1839,6 +1872,7 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -1981,6 +2015,7 @@ export const CommonApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { diff --git a/src/api/apis/location-api.ts b/src/api/apis/location-api.ts index def3a53..486bf60 100644 --- a/src/api/apis/location-api.ts +++ b/src/api/apis/location-api.ts @@ -15,7 +15,7 @@ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'a import { Configuration } from '../configuration'; // Some imports not used depending on template conditions // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +import { BASE_PATH, ORIGIN, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; import { LocHelperclass } from '../models'; /** * LocationApi - axios parameter creator @@ -45,6 +45,7 @@ export const LocationApiAxiosParamCreator = function (configuration?: Configurat const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { diff --git a/src/api/apis/odhactivity-poi-api.ts b/src/api/apis/odhactivity-poi-api.ts index 7f8d1c0..329e481 100644 --- a/src/api/apis/odhactivity-poi-api.ts +++ b/src/api/apis/odhactivity-poi-api.ts @@ -15,7 +15,7 @@ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'a import { Configuration } from '../configuration'; // Some imports not used depending on template conditions // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +import { BASE_PATH, ORIGIN, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; import { ODHActivityPoiLinked } from '../models'; import { ODHActivityPoiLinkedJsonResult } from '../models'; import { SmgPoiTypes } from '../models'; @@ -52,6 +52,7 @@ export const ODHActivityPoiApiAxiosParamCreator = function (configuration?: Conf const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -116,6 +117,7 @@ export const ODHActivityPoiApiAxiosParamCreator = function (configuration?: Conf const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -211,6 +213,7 @@ export const ODHActivityPoiApiAxiosParamCreator = function (configuration?: Conf const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -571,6 +574,7 @@ export const ODHActivityPoiApiAxiosParamCreator = function (configuration?: Conf const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { diff --git a/src/api/apis/odhtag-api.ts b/src/api/apis/odhtag-api.ts index fe5ce08..7b9f7f1 100644 --- a/src/api/apis/odhtag-api.ts +++ b/src/api/apis/odhtag-api.ts @@ -15,7 +15,7 @@ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'a import { Configuration } from '../configuration'; // Some imports not used depending on template conditions // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +import { BASE_PATH, ORIGIN, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; import { ODHTagLinked } from '../models'; /** * ODHTagApi - axios parameter creator @@ -51,6 +51,7 @@ export const ODHTagApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -124,6 +125,7 @@ export const ODHTagApiAxiosParamCreator = function (configuration?: Configuratio const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { diff --git a/src/api/apis/tag-api.ts b/src/api/apis/tag-api.ts index e0efeb3..2f1289f 100644 --- a/src/api/apis/tag-api.ts +++ b/src/api/apis/tag-api.ts @@ -15,7 +15,7 @@ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'a import { Configuration } from '../configuration'; // Some imports not used depending on template conditions // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +import { BASE_PATH, ORIGIN, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; import { TagLinked } from '../models'; import { TagLinkedJsonResult } from '../models'; /** @@ -54,6 +54,7 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -135,6 +136,7 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { diff --git a/src/api/apis/weather-api.ts b/src/api/apis/weather-api.ts index abe3e54..485c27a 100644 --- a/src/api/apis/weather-api.ts +++ b/src/api/apis/weather-api.ts @@ -15,7 +15,7 @@ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'a import { Configuration } from '../configuration'; // Some imports not used depending on template conditions // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +import { BASE_PATH, ORIGIN, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; import { BezirksWeather } from '../models'; import { Measuringpoint } from '../models'; import { SnowReportBaseData } from '../models'; @@ -54,6 +54,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -116,6 +117,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -171,6 +173,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -227,6 +230,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -299,6 +303,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -361,6 +366,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -416,6 +422,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -473,6 +480,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -557,6 +565,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -689,6 +698,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -819,6 +829,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -878,6 +889,7 @@ export const WeatherApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { diff --git a/src/api/apis/webcam-info-api.ts b/src/api/apis/webcam-info-api.ts index 6546503..5f4cedb 100644 --- a/src/api/apis/webcam-info-api.ts +++ b/src/api/apis/webcam-info-api.ts @@ -15,7 +15,7 @@ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'a import { Configuration } from '../configuration'; // Some imports not used depending on template conditions // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +import { BASE_PATH, ORIGIN, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; import { WebcamInfo } from '../models'; import { WebcamInfoJsonResult } from '../models'; /** @@ -51,6 +51,7 @@ export const WebcamInfoApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { @@ -124,6 +125,7 @@ export const WebcamInfoApiAxiosParamCreator = function (configuration?: Configur const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + localVarQueryParameter['origin'] = ORIGIN; // authentication oauth2 required // oauth required if (configuration && configuration.accessToken) { diff --git a/src/api/base.ts b/src/api/base.ts index cdcd2ef..93af338 100644 --- a/src/api/base.ts +++ b/src/api/base.ts @@ -18,6 +18,7 @@ import globalAxios, { AxiosRequestConfig, AxiosInstance } from 'axios'; export const BASE_PATH = "https://tourism.api.opendatahub.com".replace(/\/+$/, ""); //export const BASE_PATH = "https://api.tourism.testingmachine.eu".replace(/\/+$/, ""); +export const ORIGIN = "webcomp-tourism-skiinfo"; /** *