Mariangela Hills created STRATOS-973:
----------------------------------------

             Summary: Inconsistency in @path in coding comments
                 Key: STRATOS-973
                 URL: https://issues.apache.org/jira/browse/STRATOS-973
             Project: Stratos
          Issue Type: Bug
          Components: REST API
    Affects Versions: 4.1.0 M4
            Reporter: Mariangela Hills
            Priority: Minor


The forward slash / has been omitted in some of the code comments for the @path 
value. This affects the IDE search and does not show the user all the available 
options.

For example: If you search for /tenant/ to look for all the tenant REST API 
operations [1] does not appear as it is missing the forward slash.

[1]
 @GET
    @Path("tenant/search/{domain}")
    @Consumes("application/json")
    @Produces("application/json")
    @AuthorizationAction("/permission/protected/manage/monitor/tenants")
    @SuperTenantService(true)
    public TenantInfoBean[] retrievePartialSearchTenants(@PathParam("domain") 
String domain) throws RestAPIException {
        List<TenantInfoBean> tenantList = null;
        try {
            tenantList = searchPartialTenantsDomains(domain);
        } catch (Exception e) {
            String msg = "Error in getting information for tenant " + domain;
            log.error(msg, e);
            throw new RestAPIException(msg);
        }
        return tenantList.toArray(new TenantInfoBean[tenantList.size()]);
    }


------------------------------------------------------------------------------------
Therefore, the @path of the following code comments need to be updated:
tenant/search/{domain}
tenant/availability/{tenantDomain}
tenant/deactivate/{tenantDomain}



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

Reply via email to