mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
Adds notification list to orgs
This commit is contained in:
30
src/api.js
30
src/api.js
@@ -70,6 +70,36 @@ class APIClient {
|
||||
return this.http.get(endpoint);
|
||||
}
|
||||
|
||||
getOrganizationNotifications (id, params = {}) {
|
||||
const endpoint = `${API_ORGANIZATIONS}${id}/notification_templates/`;
|
||||
|
||||
return this.http.get(endpoint, { params });
|
||||
}
|
||||
|
||||
getOrganizationNotificationSuccess (id, params = {}) {
|
||||
const endpoint = `${API_ORGANIZATIONS}${id}/notification_templates_success/`;
|
||||
|
||||
return this.http.get(endpoint, { params });
|
||||
}
|
||||
|
||||
getOrganizationNotificationError (id, params = {}) {
|
||||
const endpoint = `${API_ORGANIZATIONS}${id}/notification_templates_error/`;
|
||||
|
||||
return this.http.get(endpoint, { params });
|
||||
}
|
||||
|
||||
postOrganizationNotificationSuccess (id, data) {
|
||||
const endpoint = `${API_ORGANIZATIONS}${id}/notification_templates_success/`;
|
||||
|
||||
return this.http.post(endpoint, data);
|
||||
}
|
||||
|
||||
postOrganizationNotificationError (id, data) {
|
||||
const endpoint = `${API_ORGANIZATIONS}${id}/notification_templates_error/`;
|
||||
|
||||
return this.http.post(endpoint, data);
|
||||
}
|
||||
|
||||
getInstanceGroups () {
|
||||
return this.http.get(API_INSTANCE_GROUPS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user