@GET @ApiIgnore // until documented
  @Produces("text/plain")
  public Response getComponents(String body, @Context HttpHeaders headers, @Context UriInfo ui,
                                 @QueryParam("format") String format) {

    if (format != null && format.equals("client_config_tar")) {
      return createClientConfigResource(body, headers, ui, null);
    }
    return handleRequest(headers, body, ui, Request.Type.GET,
        createComponentResource(m_clusterName, m_serviceName, null));
  }
Handles GET: /clusters/{clusterID}/services/{serviceID}/components
Get all components for a service.

@param headers http headers
@param ui      uri info
@return component collection resource representation
ambari-server/src/main/java/org/apache/ambari/server/api/services/ComponentService.java