add org teams list

This commit is contained in:
John Mitchell
2019-03-21 13:12:12 -04:00
parent 7bd8234edf
commit 7e414ace5a
8 changed files with 423 additions and 8 deletions

View File

@@ -64,12 +64,18 @@ class APIClient {
return this.http.post(API_ORGANIZATIONS, data);
}
getOrganzationAccessList (id, params = {}) {
getOrganizationAccessList (id, params = {}) {
const endpoint = `${API_ORGANIZATIONS}${id}/access_list/`;
return this.http.get(endpoint, { params });
}
getOrganizationTeamsList (id, params = {}) {
const endpoint = `${API_ORGANIZATIONS}${id}/teams/`;
return this.http.get(endpoint, { params });
}
getOrganizationDetails (id) {
const endpoint = `${API_ORGANIZATIONS}${id}/`;