diff --git a/frontend/src/app/core/api/api/admin.service.ts b/frontend/src/app/core/api/api/admin.service.ts index 665a6f0..c8afa9f 100644 --- a/frontend/src/app/core/api/api/admin.service.ts +++ b/frontend/src/app/core/api/api/admin.service.ts @@ -136,7 +136,7 @@ export class AdminService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/admin/confirm/${encodeURIComponent(String(registerToken))}`, + return this.httpClient.post(`${this.configuration.basePath}/api/admin/confirm/${encodeURIComponent(String(registerToken))}`, null, { responseType: responseType, @@ -195,7 +195,7 @@ export class AdminService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/admin/reset/${encodeURIComponent(String(resetToken))}`, + return this.httpClient.post(`${this.configuration.basePath}/api/admin/reset/${encodeURIComponent(String(resetToken))}`, bodyPassword, { responseType: responseType, @@ -243,7 +243,7 @@ export class AdminService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/admin/`, + return this.httpClient.delete(`${this.configuration.basePath}/api/admin/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -292,7 +292,7 @@ export class AdminService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/admin/`, + return this.httpClient.get(`${this.configuration.basePath}/api/admin/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -341,7 +341,7 @@ export class AdminService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/admin/hoods/`, + return this.httpClient.get(`${this.configuration.basePath}/api/admin/hoods/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -429,7 +429,7 @@ export class AdminService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/admin/login/`, + return this.httpClient.post(`${this.configuration.basePath}/api/admin/login/`, convertFormParamsToString ? formParams.toString() : formParams, { responseType: responseType, @@ -485,7 +485,7 @@ export class AdminService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/admin/register/`, + return this.httpClient.post(`${this.configuration.basePath}/api/admin/register/`, bodyAdmin, { responseType: responseType, @@ -541,7 +541,7 @@ export class AdminService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/admin/reset/`, + return this.httpClient.post(`${this.configuration.basePath}/api/admin/reset/`, kibicaraWebapiAdminBodyEmail, { responseType: responseType, diff --git a/frontend/src/app/core/api/api/badwords.service.ts b/frontend/src/app/core/api/api/badwords.service.ts index da66dfa..dea8e24 100644 --- a/frontend/src/app/core/api/api/badwords.service.ts +++ b/frontend/src/app/core/api/api/badwords.service.ts @@ -140,7 +140,7 @@ export class BadwordsService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/badwords/`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/badwords/`, bodyBadWord, { responseType: responseType, @@ -198,7 +198,7 @@ export class BadwordsService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/badwords/${encodeURIComponent(String(badwordId))}`, + return this.httpClient.delete(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/badwords/${encodeURIComponent(String(badwordId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -255,7 +255,7 @@ export class BadwordsService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/badwords/${encodeURIComponent(String(badwordId))}`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/badwords/${encodeURIComponent(String(badwordId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -308,7 +308,7 @@ export class BadwordsService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/badwords/`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/badwords/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -378,7 +378,7 @@ export class BadwordsService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/badwords/${encodeURIComponent(String(badwordId))}`, + return this.httpClient.put(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/badwords/${encodeURIComponent(String(badwordId))}`, bodyBadWord, { responseType: responseType, diff --git a/frontend/src/app/core/api/api/email.service.ts b/frontend/src/app/core/api/api/email.service.ts index 526622c..c5c4e94 100644 --- a/frontend/src/app/core/api/api/email.service.ts +++ b/frontend/src/app/core/api/api/email.service.ts @@ -126,7 +126,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/subscribe/confirm/${encodeURIComponent(String(token))}`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/subscribe/confirm/${encodeURIComponent(String(token))}`, null, { responseType: responseType, @@ -193,7 +193,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/`, kibicaraPlatformsEmailWebapiBodyEmail, { responseType: responseType, @@ -251,7 +251,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/${encodeURIComponent(String(emailId))}`, + return this.httpClient.delete(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/${encodeURIComponent(String(emailId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -307,7 +307,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/${encodeURIComponent(String(emailId))}`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/${encodeURIComponent(String(emailId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -359,7 +359,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -404,7 +404,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/public`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/public`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -460,7 +460,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/subscribers/${encodeURIComponent(String(subscriberId))}`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/subscribers/${encodeURIComponent(String(subscriberId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -512,7 +512,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/subscribers/`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/subscribers/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -571,7 +571,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/messages/`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/messages/`, kibicaraPlatformsEmailWebapiBodyMessage, { responseType: responseType, @@ -624,7 +624,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/start`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/start`, null, { responseType: responseType, @@ -677,7 +677,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/status`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/status`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -729,7 +729,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/stop`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/stop`, null, { responseType: responseType, @@ -789,7 +789,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/subscribe/`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/subscribe/`, bodySubscriber, { responseType: responseType, @@ -840,7 +840,7 @@ export class EmailService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/email/unsubscribe/${encodeURIComponent(String(token))}`, + return this.httpClient.delete(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/email/unsubscribe/${encodeURIComponent(String(token))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, diff --git a/frontend/src/app/core/api/api/hoods.service.ts b/frontend/src/app/core/api/api/hoods.service.ts index 583c40b..30c4c8d 100644 --- a/frontend/src/app/core/api/api/hoods.service.ts +++ b/frontend/src/app/core/api/api/hoods.service.ts @@ -136,7 +136,7 @@ export class HoodsService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/`, bodyHood, { responseType: responseType, @@ -190,7 +190,7 @@ export class HoodsService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}`, + return this.httpClient.delete(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -236,7 +236,7 @@ export class HoodsService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -278,7 +278,7 @@ export class HoodsService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -344,7 +344,7 @@ export class HoodsService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}`, + return this.httpClient.put(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}`, bodyHood, { responseType: responseType, diff --git a/frontend/src/app/core/api/api/mastodon.service.ts b/frontend/src/app/core/api/api/mastodon.service.ts index f937044..2cc0f48 100644 --- a/frontend/src/app/core/api/api/mastodon.service.ts +++ b/frontend/src/app/core/api/api/mastodon.service.ts @@ -152,7 +152,7 @@ export class MastodonService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/mastodon/`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/mastodon/`, null, { params: queryParameters, @@ -210,7 +210,7 @@ export class MastodonService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/mastodon/${encodeURIComponent(String(mastodonId))}`, + return this.httpClient.delete(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/mastodon/${encodeURIComponent(String(mastodonId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -266,7 +266,7 @@ export class MastodonService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/mastodon/${encodeURIComponent(String(mastodonId))}`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/mastodon/${encodeURIComponent(String(mastodonId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -318,7 +318,7 @@ export class MastodonService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/mastodon/`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/mastodon/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -363,7 +363,7 @@ export class MastodonService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/mastodon/public`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/mastodon/public`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -419,7 +419,7 @@ export class MastodonService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/mastodon/${encodeURIComponent(String(mastodonId))}/start`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/mastodon/${encodeURIComponent(String(mastodonId))}/start`, null, { responseType: responseType, @@ -476,7 +476,7 @@ export class MastodonService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/mastodon/${encodeURIComponent(String(mastodonId))}/status`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/mastodon/${encodeURIComponent(String(mastodonId))}/status`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -532,7 +532,7 @@ export class MastodonService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/mastodon/${encodeURIComponent(String(mastodonId))}/stop`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/mastodon/${encodeURIComponent(String(mastodonId))}/stop`, null, { responseType: responseType, diff --git a/frontend/src/app/core/api/api/telegram.service.ts b/frontend/src/app/core/api/api/telegram.service.ts index 3167896..ba88547 100644 --- a/frontend/src/app/core/api/api/telegram.service.ts +++ b/frontend/src/app/core/api/api/telegram.service.ts @@ -139,7 +139,7 @@ export class TelegramService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/telegram/`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/telegram/`, bodyTelegram, { responseType: responseType, @@ -196,7 +196,7 @@ export class TelegramService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}`, + return this.httpClient.delete(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -252,7 +252,7 @@ export class TelegramService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -304,7 +304,7 @@ export class TelegramService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/telegram/`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/telegram/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -349,7 +349,7 @@ export class TelegramService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/telegram/public`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/telegram/public`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -405,7 +405,7 @@ export class TelegramService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}/start`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}/start`, null, { responseType: responseType, @@ -462,7 +462,7 @@ export class TelegramService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}/status`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}/status`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -518,7 +518,7 @@ export class TelegramService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}/stop`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}/stop`, null, { responseType: responseType, @@ -588,7 +588,7 @@ export class TelegramService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}`, + return this.httpClient.put(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/telegram/${encodeURIComponent(String(telegramId))}`, bodyTelegram, { responseType: responseType, diff --git a/frontend/src/app/core/api/api/test.service.ts b/frontend/src/app/core/api/api/test.service.ts index b207662..e5a5424 100644 --- a/frontend/src/app/core/api/api/test.service.ts +++ b/frontend/src/app/core/api/api/test.service.ts @@ -126,7 +126,7 @@ export class TestService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/test/`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/test/`, null, { responseType: responseType, @@ -183,7 +183,7 @@ export class TestService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/test/${encodeURIComponent(String(testId))}`, + return this.httpClient.delete(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/test/${encodeURIComponent(String(testId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -252,7 +252,7 @@ export class TestService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/test/${encodeURIComponent(String(testId))}/messages/`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/test/${encodeURIComponent(String(testId))}/messages/`, kibicaraPlatformsTestWebapiBodyMessage, { responseType: responseType, @@ -309,7 +309,7 @@ export class TestService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/test/${encodeURIComponent(String(testId))}/messages/`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/test/${encodeURIComponent(String(testId))}/messages/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -361,7 +361,7 @@ export class TestService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/test/`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/test/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -417,7 +417,7 @@ export class TestService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/test/${encodeURIComponent(String(testId))}`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/test/${encodeURIComponent(String(testId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, diff --git a/frontend/src/app/core/api/api/triggers.service.ts b/frontend/src/app/core/api/api/triggers.service.ts index 28a9f01..8dc0e7c 100644 --- a/frontend/src/app/core/api/api/triggers.service.ts +++ b/frontend/src/app/core/api/api/triggers.service.ts @@ -140,7 +140,7 @@ export class TriggersService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/triggers/`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/triggers/`, bodyTrigger, { responseType: responseType, @@ -198,7 +198,7 @@ export class TriggersService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/triggers/${encodeURIComponent(String(triggerId))}`, + return this.httpClient.delete(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/triggers/${encodeURIComponent(String(triggerId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -255,7 +255,7 @@ export class TriggersService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/triggers/${encodeURIComponent(String(triggerId))}`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/triggers/${encodeURIComponent(String(triggerId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -308,7 +308,7 @@ export class TriggersService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/triggers/`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/triggers/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -378,7 +378,7 @@ export class TriggersService { responseType = 'text'; } - return this.httpClient.put(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/triggers/${encodeURIComponent(String(triggerId))}`, + return this.httpClient.put(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/triggers/${encodeURIComponent(String(triggerId))}`, bodyTrigger, { responseType: responseType, diff --git a/frontend/src/app/core/api/api/twitter.service.ts b/frontend/src/app/core/api/api/twitter.service.ts index c0d3f1c..c34a019 100644 --- a/frontend/src/app/core/api/api/twitter.service.ts +++ b/frontend/src/app/core/api/api/twitter.service.ts @@ -147,7 +147,7 @@ export class TwitterService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/twitter/callback`, + return this.httpClient.get(`${this.configuration.basePath}/api/twitter/callback`, { params: queryParameters, responseType: responseType, @@ -201,7 +201,7 @@ export class TwitterService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/twitter/`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/twitter/`, null, { responseType: responseType, @@ -258,7 +258,7 @@ export class TwitterService { responseType = 'text'; } - return this.httpClient.delete(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/twitter/${encodeURIComponent(String(twitterId))}`, + return this.httpClient.delete(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/twitter/${encodeURIComponent(String(twitterId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -314,7 +314,7 @@ export class TwitterService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/twitter/${encodeURIComponent(String(twitterId))}`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/twitter/${encodeURIComponent(String(twitterId))}`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -366,7 +366,7 @@ export class TwitterService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/twitter/`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/twitter/`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -411,7 +411,7 @@ export class TwitterService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/twitter/public`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/twitter/public`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -467,7 +467,7 @@ export class TwitterService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/twitter/${encodeURIComponent(String(twitterId))}/start`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/twitter/${encodeURIComponent(String(twitterId))}/start`, null, { responseType: responseType, @@ -524,7 +524,7 @@ export class TwitterService { responseType = 'text'; } - return this.httpClient.get(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/twitter/${encodeURIComponent(String(twitterId))}/status`, + return this.httpClient.get(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/twitter/${encodeURIComponent(String(twitterId))}/status`, { responseType: responseType, withCredentials: this.configuration.withCredentials, @@ -580,7 +580,7 @@ export class TwitterService { responseType = 'text'; } - return this.httpClient.post(`${this.configuration.basePath}/hoods/${encodeURIComponent(String(hoodId))}/twitter/${encodeURIComponent(String(twitterId))}/stop`, + return this.httpClient.post(`${this.configuration.basePath}/api/hoods/${encodeURIComponent(String(hoodId))}/twitter/${encodeURIComponent(String(twitterId))}/stop`, null, { responseType: responseType,