mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-15 07:42:41 -04:00
Merge pull request #3488 from alphagov/ask-for-less-detailed-templates
Ask API for less detailed JSON for all templates
This commit is contained in:
@@ -276,7 +276,7 @@ class ServiceAPIClient(NotifyAdminAPIClient):
|
||||
"""
|
||||
Retrieve all templates for service.
|
||||
"""
|
||||
endpoint = '/service/{service_id}/template'.format(
|
||||
endpoint = '/service/{service_id}/template?detailed=False'.format(
|
||||
service_id=service_id)
|
||||
return self.get(endpoint)
|
||||
|
||||
|
||||
@@ -275,7 +275,7 @@ def test_client_returns_count_of_service_templates(
|
||||
],
|
||||
None,
|
||||
[
|
||||
call('/service/{}/template'.format(SERVICE_ONE_ID))
|
||||
call('/service/{}/template?detailed=False'.format(SERVICE_ONE_ID))
|
||||
],
|
||||
[
|
||||
call(
|
||||
|
||||
Reference in New Issue
Block a user