Showing results for 
Search instead for 
Did you mean: 

rest api are not available for wish list, review and rating

0 Kudos

rest api are not available for wish list, review and rating

Feature request from arunkasyakar, posted on GitHub Nov 24, 2015

There are no rest api's available for wish list, review and rating related tasks.

Not applicable
Status changed to: Investigating
Not applicable

Comment from choukalos, posted on GitHub Nov 24, 2015

Yes; we won't get to that service for some time as we want to finish fully re-factoring Catalog, Sales, CMS, & Promotions (i.e. that means all client usages use the service, etc). It's currently in our backlog as ticket - MAGETWO-28087. Now if some enterprising community member wanted to build some expertise and re-factor reviews as a service, make it an extensible object of catalog and send us several pull requests (probably one for the service, then refactor internal module to use service, then one for each external module that's been refactored to use the service) that would be really cool - hint / nudge / etc.

Not applicable

Comment from alankent, posted on GitHub Nov 24, 2015

If you need them in the shorter term, you can roll your own REST APIs fairly easily. There is the devdocs site, plus you might find useful if you want to go that route.

Not applicable

Comment from realdigid, posted on GitHub Nov 28, 2015

Is this already being worked on? I'm looking to contribute to Magento 2.0 code base looking for a place a start, any suggestions should i just find a few acknowledged issues and fix them? You have internal tickets, how do people contribute effectively if you have an internal ticket system I dont want to work on something that's already being worked on...?

Not applicable

Comment from choukalos, posted on GitHub Dec 02, 2015

Hello @realdigid - they're not on our short term roadmap. So if you'd like to work on them please feel free to do so. I'd suggest looking at the customer service and patterning off that. We view services as a 2 step process. First we create a set of APIs for the module (see Alan's link) then we would re-factor the module's internal usages and then all external module usages to use those APIs. I'd suggest that you do a design document for what services ( URL, request/response, what are extensible objects or what would you attach the service as an extensible object to ) and DM me with that. I'll get it to the appropriate architect to review and provide feedback. Re-factoring modules to use the service is pretty straight forward, and also the bulk of the work/time spent, so think most of the PR feedback would be around the APIs. We usually find we have to make tweaks to the APIs when we're refactoring client usages so it pays big dividends to explore what you think you'd have to re-factor when designing the apis.

Thanks! Chuck

Not applicable

Comment from qwerty7869, posted on GitHub Jun 16, 2016

Did anyone have created wishlist and product review rest api?

Not applicable

Comment from ajay-ipragmatech, posted on GitHub Jun 21, 2016

Hi qwerty7869,

We have created the rest api's for the wishlist and for review . After implementing review and wishlist api we have added the code into the git hub please look at the following for review and wishlist : - This is for review api - This link is for Wishlist APi

Not applicable

Comment from manish-ip, posted on GitHub Jun 21, 2016

We have created a custom extension for review and wishlist API which is in under process for submission. If you need this then contact us or wait till submit on Marketplace.

Not applicable

Comment from thdoan, posted on GitHub Jul 15, 2016

For anyone who wants a really quick poor man's solution, then you can fake AJAX by replacing the default action (submit form post and redirect to wishlist page) with $.post(). This will allow customers to remain on the same page and you can immediately update the "Wish List" link to say "Wish Listed" and change the heart color to red, etc. Make sure you also chain a .fail() in there to notify customers when (on rare occasions) the product was not added to the wish list successfully.

To determine if a product is already in the wishlist so a product that has already been wishlisted will show "Wish Listed" when you go back to it:

$wishlistHelper = $this->helper('Magento\Wishlist\Helper\Data');
$_inWishlist = false;
foreach ($wishlistHelper->getWishlistItemCollection() as $_wishlist_item) {
  if ($_product->getId() === $_wishlist_item->getProduct()->getId()) {
    $_inWishlist = true;

This is not a perfect solution by any means, but it has been working well for us since Magento 1.x days. In the long run, I do wish that all merchandising functionalities in Magento can be exposed as web services similar to Amazon (e.g., up-sells, cross-sells, customers who bought this also bought these).