aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/organizations.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/organizations.js')
-rw-r--r--server/sonar-web/src/main/js/api/organizations.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/api/organizations.js b/server/sonar-web/src/main/js/api/organizations.js
index 95de53bb6d9..0723fb0c258 100644
--- a/server/sonar-web/src/main/js/api/organizations.js
+++ b/server/sonar-web/src/main/js/api/organizations.js
@@ -54,3 +54,13 @@ export const updateOrganization = (key: string, changes: {}) =>
post('/api/organizations/update', { key, ...changes });
export const deleteOrganization = (key: string) => post('/api/organizations/delete', { key });
+
+export const searchMembers = (
+ data: { organizations?: string, p?: number, ps?: number, q?: string, selected?: string }
+) => getJSON('/api/organizations/search_members', data);
+
+export const addMember = (data: { login: string, organization: string }) =>
+ post('/api/organizations/add_member', data);
+
+export const removeMember = (data: { login: string, organization: string }) =>
+ post('/api/organizations/remove_member', data);