Skip to content

Latest commit

 

History

History
14 lines (14 loc) · 1.12 KB

2020-10-23-add-api-for-wishlist.md

File metadata and controls

14 lines (14 loc) · 1.12 KB
title issue
Put items to wishlist from products listing and detail pages.
NEXT-11280

Core

  • Added new route /store-api/v{version}/customer/wishlist which return the customer wishlist data.
  • Added new route /store-api/v{version}/customer/wishlist/delete/{productId} which delete the product from the wishlist of customer
  • Added new route /store-api/v{version}/customer/wishlist/add/{productId} which add the product into the wishlist of customer
  • Added event CustomerWishlistLoaderCriteriaEvent, The event will dispatch criteria when loader customer wishlist data.
  • Added event CustomerWishlistLoaderCriteriaEvent, The event will dispatch criteria when loader customer wishlist data.
  • Added an exception CustomerWishlistNotFoundException which will be thrown when do not exist data customer wishlist in the database.
  • Added an exception DuplicateWishlistProductException which will be thrown when the user added a product which has been added before.
  • Added an exception WishlistProductNotFoundException which will be thrown when the user deleted a product that does not exist in their wishlist.