Repository: stratos Updated Branches: refs/heads/master 62c705678 -> 7b437d15b
Removing URIs from update autoscaling/deployment policy method responses Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/7b437d15 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/7b437d15 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/7b437d15 Branch: refs/heads/master Commit: 7b437d15bd5bab9f9a745eb7a759d0a1ec1103fe Parents: 62c7056 Author: Imesh Gunaratne <[email protected]> Authored: Fri Oct 24 19:51:59 2014 +0530 Committer: Imesh Gunaratne <[email protected]> Committed: Fri Oct 24 19:51:59 2014 +0530 ---------------------------------------------------------------------- .../apache/stratos/rest/endpoint/services/StratosAdmin.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/7b437d15/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/StratosAdmin.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/StratosAdmin.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/StratosAdmin.java index 2157b58..226a4ab 100644 --- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/StratosAdmin.java +++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/StratosAdmin.java @@ -186,8 +186,7 @@ public class StratosAdmin extends AbstractAdmin { throws RestAPIException { ServiceUtils.updateAutoscalingPolicy(autoscalePolicy); - URI url = uriInfo.getAbsolutePathBuilder().path(autoscalePolicy.getId()).build(); - return Response.ok(url).build(); + return Response.ok().build(); } @POST @@ -212,8 +211,7 @@ public class StratosAdmin extends AbstractAdmin { throws RestAPIException { ServiceUtils.updateDeploymentPolicy(deploymentPolicy); - URI url = uriInfo.getAbsolutePathBuilder().path(deploymentPolicy.getId()).build(); - return Response.ok(url).build(); + return Response.ok().build(); } @GET
