mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-03 15:41:06 -04:00
Ask API for less detailed JSON for all templates
This should speed things up by: - less time waiting for big blobs of JSON to come from Redis or the API - less time spent deserialising big blobs of JSON
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user