@Path("{serviceName}/components")
  // TODO: find a way to handle this with Swagger (refactor or custom annotation?)
  public ComponentService getComponentHandler(@PathParam("serviceName") String serviceName) {

    return new ComponentService(m_clusterName, serviceName);
  }
Get the components sub-resource.

@param serviceName service id
@return the components service
ambari-server/src/main/java/org/apache/ambari/server/api/services/ServiceService.java