Interface MerchCatalogServiceClient

All Known Implementing Classes:
MerchCatalogServiceClientAdapter, NoOpMerchCatalogServiceClientAdapter

public interface MerchCatalogServiceClient
MerchCatalogServiceClient is a JAX-RS interface for the Merchandising Catalog Service.
  • Method Details

    • handleProductsBatch

      @POST @Produces("application/json") @Path("/${tenant}/products") String handleProductsBatch(@QueryParam("version") Long version, List<Map<String,Object>> products)
      handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.
      Parameters:
      version - the version to send the products as.
      products - a list of products to send.
      Returns:
      String - ID of the operation.
    • handleProductsBatch

      @POST @Produces("application/json") @Path("/${tenant}/products") String handleProductsBatch(List<Map<String,Object>> products)
      handleProductsBatch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.
      Parameters:
      products - a list of products to send.
      Returns:
      String - ID of the operation.
    • handleProductsBatchAsynch

      @POST @Produces("application/json") @Path("/${tenant}/products") rx.Observable<String> handleProductsBatchAsynch(List<Map<String,Object>> products)
      handleProductsBatchAsynch is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.
      Parameters:
      products - a list of products to send.
      Returns:
      String - ID of the operation.
    • handleProductsBatchAsynch

      @POST @Produces("application/json") @Path("/${tenant}/products") rx.Observable<String> handleProductsBatchAsynch(@QueryParam("version") Long version, List<Map<String,Object>> products)
      handleProductsBatchAsync is a handler for accepting a batch of products and sending them to the Merchandising Catalog service.
      Parameters:
      version - the version to send the products as.
      products - a list of products to send.
      Returns:
      String - ID of the operation.
    • publishProducts

      @POST @Produces("application/json") @Path("/${tenant}/products/publish") Void publishProducts(@QueryParam("version") Long version)
      publishProducts is an API for marking a set of products as being published to live in a synchronous manner.
      Parameters:
      version - the version to publish.
      Returns:
      Void.
    • publishProductsAsync

      @POST @Produces("application/json") @Path("/${tenant}/products/publish") rx.Observable<Void> publishProductsAsync(@QueryParam("version") Long version)
      publishProducts is an API for marking a set of products as being published to live in an asynchronous manner.
      Parameters:
      version - the version to publish.
      Returns:
      Void.
    • handleCategoriesAsync

      @POST @Produces("application/json") @Path("/${tenant}/categories") rx.Observable<String> handleCategoriesAsync(CategoryHierarchyWrapper categories)
      handleCategoriesAsync is an asynchronous method for sending categories to Merch v2.
      Parameters:
      categories - the CategoryHierarchyWrapper object to publish.
      Returns:
      an Observable containing the response.
    • handleCategories

      @POST @Produces("application/json") @Path("/${tenant}/categories") String handleCategories(CategoryHierarchyWrapper categories)
      handleCategories is a method for sending categories to Merch v2.
      Parameters:
      categories - the CategoryHierarchyWrapper object to publish.
      Returns:
      String - ID of the operation.