[
https://issues.apache.org/jira/browse/STRATOS-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dinithi De SIlva updated STRATOS-972:
-------------------------------------
Fix Version/s: 4.1.0 RC1
> 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
> Fix For: 4.1.0 Beta2, 4.1.0 RC1
>
>
> 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)