You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by "Mariangela Hills (JIRA)" <ji...@apache.org> on 2014/11/17 06:43:33 UTC

[jira] [Created] (STRATOS-972) Rewording Auto-scaling policy related resource paths

Mariangela Hills created STRATOS-972:
----------------------------------------

             Summary: 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)