@Path("{clusterName}/services")
  public ServiceService getServiceHandler(@Context jakarta.ws.rs.core.Request request, @ApiParam @PathParam("clusterName") String clusterName) {
    return new ServiceService(clusterName);
  }
Get the services sub-resource

@param request      the request
@param clusterName  cluster id

@return the services service
ambari-server/src/main/java/org/apache/ambari/server/api/services/ClusterService.java