Mariangela Hills created STRATOS-1226:
-----------------------------------------

             Summary: AutoscalingPolicy referred to as autoscalePolicy in code 
base
                 Key: STRATOS-1226
                 URL: https://issues.apache.org/jira/browse/STRATOS-1226
             Project: Stratos
          Issue Type: Improvement
          Components: REST API
    Affects Versions: 4.1.0 Alpha
            Reporter: Mariangela Hills
            Priority: Trivial


In the StratosApiV41.java file in the code autoscalingPolicy has been referred 
to as autoscalePolicy. This needs to be corrected in order to standardize the 
code.
----------------------------------------------------------------------------
Example:
 @GET
    @Path("/autoscalingPolicies/{autoscalePolicyId}")
    @Produces("application/json")
    @Consumes("application/json")
    @AuthorizationAction("/permission/admin/manage/getAutoscalingPolicies")
    public Response getAutoscalingPolicy(@PathParam("autoscalePolicyId") String 
autoscalePolicyId)
            throws RestAPIException {
        AutoscalePolicyBean autoScalePolicy = 
StratosApiV41Utils.getAutoScalePolicy(autoscalePolicyId);
        if (autoScalePolicy == null) {
            return Response.status(Response.Status.NOT_FOUND).build();
        }
        return Response.ok().entity(autoScalePolicy).build();




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to