[ https://issues.apache.org/jira/browse/STRATOS-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chamila de Alwis resolved STRATOS-972. -------------------------------------- Resolution: Invalid REST endpoint related to autoscaling policies now are of "/autoscalingPolicies/{policyId}" format. > Rewording Auto-scaling policy related resource paths > ---------------------------------------------------- > > Key: STRATOS-972 > URL: https://issues.apache.org/jira/browse/STRATOS-972 > Project: Stratos > Issue Type: Sub-task > Components: REST API > Affects Versions: 4.1.0 M4 > Reporter: Mariangela Hills > > In Stratos the two types of smart policies are deployment policy and > auto-scaling policy. Currently, the resource paths of the auto-scaling > policies state "autoscale" as opposed to "autoscaling", for example > /policy/autoscale [1]. It is best to reword "autoscale" to "autoscaling". > Example: > @POST > @Path("/policy/autoscale") > @Produces("application/json") > @Consumes("application/json") > @AuthorizationAction("/permission/admin/manage/add/autoscalingPolicy") > public Response deployAutoscalingPolicyDefintion(AutoscalePolicy > autoscalePolicy) > throws RestAPIException { > StratosApiV41Utils.deployAutoscalingPolicy(autoscalePolicy); > URI url = > uriInfo.getAbsolutePathBuilder().path(autoscalePolicy.getId()).build(); > return Response.created(url).build(); > } -- This message was sent by Atlassian JIRA (v6.3.4#6332)