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 2015/03/03 20:07:04 UTC

[jira] [Created] (STRATOS-1224) Typo in the /deploymentPolicies/{deploymentPolicyId} DELETE method

Mariangela Hills created STRATOS-1224:
-----------------------------------------

             Summary: Typo in the /deploymentPolicies/{deploymentPolicyId} DELETE method
                 Key: STRATOS-1224
                 URL: https://issues.apache.org/jira/browse/STRATOS-1224
             Project: Stratos
          Issue Type: Improvement
          Components: REST API
    Affects Versions: 4.1.0 Alpha
            Reporter: Mariangela Hills
            Priority: Trivial


There is a typo in the following code that appears In the <STRATOS-SOURCE_HOME>/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java file. depolymentPolicyID should be deploymentPolicyId.


--------------------------------------------------------

@DELETE
	@Path("/deploymentPolicies/{depolymentPolicyID}")
	@Produces("application/json")
	@Consumes("application/json")
	@AuthorizationAction("/permission/admin/manage/removeDeploymentPolicy")
	public Response removeDeploymentPolicy(@PathParam("depolymentPolicyID") String deploymentPolicyID)
			throws RestAPIException {

		StratosApiV41Utils.removeDeploymentPolicy(deploymentPolicyID);
		URI url = uriInfo.getAbsolutePathBuilder().path(deploymentPolicyID).build();
		return Response.created(url).entity(new SuccessResponseBean(Response.Status.OK.getStatusCode(),
		                                                            String.format(
				                                                            "Deployment policy removed successfully: " +
				                                                            "[deployment-policy-id] %s",
				                                                            deploymentPolicyID))).build();



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