From 4ae3118c52013c010723ae9340266c997e9e4548 Mon Sep 17 00:00:00 2001 From: Iukou Siarhei <45054016+BlazarQSO@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:19:21 +0300 Subject: [PATCH] Update user endpoints (#4123) --- app/src/common/urls.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/app/src/common/urls.js b/app/src/common/urls.js index d57283ad43..3d91a6ed92 100644 --- a/app/src/common/urls.js +++ b/app/src/common/urls.js @@ -122,8 +122,8 @@ export const URLS = { login: () => `${uatBase}sso/oauth/token`, sessionToken: () => `${uatBase}sso/me`, - apiKeys: (userId) => `${urlCommonBase}users/${userId}/api-keys`, - apiKeyById: (userId, apiKeyId) => `${urlCommonBase}users/${userId}/api-keys/${apiKeyId}`, + apiKeys: (userId) => `${urlBase}users/${userId}/api-keys`, + apiKeyById: (userId, apiKeyId) => `${urlBase}users/${userId}/api-keys/${apiKeyId}`, organizationList: (preferencesObj = {}) => `${urlCommonBase}organizations${getQueryParams(preferencesObj)}`, @@ -152,7 +152,7 @@ export const URLS = { term: searchTerm, })}`, searchUsers: (term) => - `${urlCommonBase}users/search${getQueryParams({ + `${urlBase}users/search${getQueryParams({ term, })}`, projectAddPattern: (projectKey) => `${urlBase}${projectKey}/settings/pattern`, @@ -242,17 +242,17 @@ export const URLS = { })}`, logSearch: (projectKey, itemId) => `${urlBase}${projectKey}/log/search/${itemId}`, bulkLastLogs: (projectKey) => `${urlBase}${projectKey}/log/under`, - users: (ids = []) => `${urlCommonBase}users?ids=${ids.join(',')}`, - userRegistration: () => `${urlCommonBase}users/registration`, - userValidateRegistrationInfo: () => `${urlCommonBase}users/registration/info`, - userPasswordReset: () => `${urlCommonBase}users/password/reset`, - userPasswordResetToken: (token) => `${urlCommonBase}users/password/reset/${token}`, - userPasswordRestore: () => `${urlCommonBase}users/password/restore`, - userChangePassword: () => `${urlCommonBase}users/password/change`, + users: (ids = []) => `${urlBase}users?ids=${ids.join(',')}`, + userRegistration: () => `${urlBase}users/registration`, + userValidateRegistrationInfo: () => `${urlBase}users/registration/info`, + userPasswordReset: () => `${urlBase}users/password/reset`, + userPasswordResetToken: (token) => `${urlBase}users/password/reset/${token}`, + userPasswordRestore: () => `${urlBase}users/password/restore`, + userChangePassword: () => `${urlBase}users/password/change`, userSynchronize: (type) => `${uatBase}sso/me/${type}/synchronize`, - userInfo: (userId) => `${urlCommonBase}users/${userId}`, + userInfo: (userId) => `${urlBase}users/${userId}`, userInviteInternal: (projectKey) => `${urlBase}project/${projectKey}/assign`, - userInviteExternal: () => `${urlCommonBase}users/bid`, + userInviteExternal: () => `${urlBase}users/bid`, userUnassign: (projectKey) => `${urlBase}project/${projectKey}/unassign`, generateDemoData: (projectKey) => `${urlBase}demo/${projectKey}/generate`, @@ -265,10 +265,10 @@ export const URLS = { events: () => `${urlBase}activities/searches`, searchEventsBySubjectName: (projectName) => (searchTerm = '') => `${urlBase}activities/${projectName}/subjectName?filter.cnt.subjectName=${searchTerm}`, - allUsers: () => `${urlCommonBase}users/all`, + allUsers: () => `${urlBase}users/all`, exportUsers: (filterEntities) => - `${urlCommonBase}users/export${getQueryParams({ + `${urlBase}users/export${getQueryParams({ view: 'csv', ...createFilterQuery(filterEntities), })}`,