diff --git a/pom.xml b/pom.xml
index 3fb9171..5f23d41 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
org.springframework.social
spring-social-oidc-deep
- 1.2-SNAPSHOT
+ 1.3
2.9.5
diff --git a/src/main/java/org/springframework/social/oidc/deep/api/DeepOrchestrator.java b/src/main/java/org/springframework/social/oidc/deep/api/DeepOrchestrator.java
index 1f9c3b5..eb99521 100644
--- a/src/main/java/org/springframework/social/oidc/deep/api/DeepOrchestrator.java
+++ b/src/main/java/org/springframework/social/oidc/deep/api/DeepOrchestrator.java
@@ -37,4 +37,11 @@ public interface DeepOrchestrator extends ApiBinding {
* @return The operation result in plain text. It must be parsed by the calling client.
*/
ResponseEntity callUndeploy(String deploymentId);
+
+ /**
+ * Gets the template description associated to a deployment.
+ * @param deploymentId The deployment identifier.
+ * @return The deployment template in plain text. It must be parsed by the calling client.
+ */
+ ResponseEntity callGetTemplate(String deploymentId);
}
diff --git a/src/main/java/org/springframework/social/oidc/deep/api/impl/DeepOrchestratorTemplate.java b/src/main/java/org/springframework/social/oidc/deep/api/impl/DeepOrchestratorTemplate.java
index 5b32517..fb89627 100644
--- a/src/main/java/org/springframework/social/oidc/deep/api/impl/DeepOrchestratorTemplate.java
+++ b/src/main/java/org/springframework/social/oidc/deep/api/impl/DeepOrchestratorTemplate.java
@@ -136,4 +136,15 @@ public ResponseEntity callUndeploy(String deploymentId) {
HttpMethod.DELETE, URI.create(baseUrl.toString() + "/" + deploymentId));
return getRestTemplate().exchange(requestEntity, String.class);
}
+
+ /**
+ * Gets the template description associated to a deployment.
+ * @param deploymentId The deployment identifier.
+ * @return The deployment template in plain text. It must be parsed by the calling client.
+ */
+ public ResponseEntity callGetTemplate(String deploymentId) {
+ return getRestTemplate()
+ .getForEntity(URI.create(baseUrl.toString() + "/" + deploymentId + "/template"),
+ String.class);
+ }
}