Skip to content

Commit

Permalink
adding origin to each api call
Browse files Browse the repository at this point in the history
  • Loading branch information
RudiThoeni committed Jan 9, 2025
1 parent db8e4e8 commit fefb206
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 7 deletions.
37 changes: 36 additions & 1 deletion src/api/apis/common-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion src/api/apis/location-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 5 additions & 1 deletion src/api/apis/odhactivity-poi-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 3 additions & 1 deletion src/api/apis/odhtag-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 3 additions & 1 deletion src/api/apis/tag-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
/**
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
14 changes: 13 additions & 1 deletion src/api/apis/weather-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
Loading

0 comments on commit fefb206

Please sign in to comment.