Skip to content

Commit

Permalink
Update user endpoints (#4123)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazarQSO authored Dec 5, 2024
1 parent 7d08ade commit 4ae3118
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions app/src/common/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`,
Expand Down Expand Up @@ -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`,
Expand Down Expand Up @@ -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`,
Expand All @@ -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),
})}`,
Expand Down

0 comments on commit 4ae3118

Please sign in to comment.