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:
Chris Hill-Scott
2020-06-19 10:32:44 +01:00
parent c7543df39b
commit 51e99bd828
2 changed files with 2 additions and 2 deletions

View File

@@ -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)