stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mariangela Hills (JIRA)" <j...@apache.org>
Subject [jira] [Created] (STRATOS-972) Rewording Auto-scaling policy related resource paths
Date Mon, 17 Nov 2014 05:43:33 GMT
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)

Mime
View raw message