Skip to content

Commit

Permalink
Merge pull request #3 from indigo-dc/features/issue-2
Browse files Browse the repository at this point in the history
Features/issue 2
  • Loading branch information
Jose Antonio Sanchez authored Jul 30, 2019
2 parents ab39b5f + c90d5b4 commit 7e64589
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.springframework.social</groupId>
<artifactId>spring-social-oidc-deep</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.3</version>

<properties>
<jackson.version>2.9.5</jackson.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> 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<String> callGetTemplate(String deploymentId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,15 @@ public ResponseEntity<String> 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<String> callGetTemplate(String deploymentId) {
return getRestTemplate()
.getForEntity(URI.create(baseUrl.toString() + "/" + deploymentId + "/template"),
String.class);
}
}

0 comments on commit 7e64589

Please sign in to comment.