From 2270fa0f2cec2514a828afddab2237aea184ad49 Mon Sep 17 00:00:00 2001 From: Martin Macko Date: Tue, 16 Oct 2018 15:31:50 +0200 Subject: [PATCH] Updates documentation for GET /templates --- USAGE.md | 1 + examples/templates/templates.java | 1 + 2 files changed, 2 insertions(+) diff --git a/USAGE.md b/USAGE.md index cf25b2c6..5f7a913c 100644 --- a/USAGE.md +++ b/USAGE.md @@ -4435,6 +4435,7 @@ Transactional templates are templates created specifically for transactional ema Request request = new Request(); request.setMethod(Method.GET); request.setEndpoint("templates"); + request.addQueryParam("generations", "legacy,dynamic") Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody()); diff --git a/examples/templates/templates.java b/examples/templates/templates.java index a16c4bed..4fcf3886 100644 --- a/examples/templates/templates.java +++ b/examples/templates/templates.java @@ -42,6 +42,7 @@ public static void main(String[] args) throws IOException { Request request = new Request(); request.setMethod(Method.GET); request.setEndpoint("templates"); + request.addQueryParam("generations", "legacy,dynamic") Response response = sg.api(request); System.out.println(response.getStatusCode()); System.out.println(response.getBody());