mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-04 16:11:11 -04:00
Functionality added and all tests working.
Update correct use of permissions form.
This commit is contained in:
@@ -70,6 +70,15 @@ class ServiceAPIClient(NotificationsAPIClient):
|
||||
endpoint = "/service/{0}".format(service_id)
|
||||
return self.post(endpoint, data)
|
||||
|
||||
def remove_user_from_service(self, service_id, user_id):
|
||||
"""
|
||||
Remove a user from a service
|
||||
"""
|
||||
endpoint = '/service/{service_id}/users/{user_id}'.format(
|
||||
service_id=service_id,
|
||||
user_id=user_id)
|
||||
return self.delete(endpoint)
|
||||
|
||||
def create_service_template(self, name, type_, content, service_id, subject=None):
|
||||
"""
|
||||
Create a service template.
|
||||
|
||||
Reference in New Issue
Block a user