alex-le/magento2-review-summary

Magento 2 Review Summary REST API

v1.0.6 2022-05-24 07:49 UTC

This package is auto-updated.

Last update: 2024-04-24 12:02:25 UTC


README

Overview

Magento does not provide a REST API Endpoint to get the reviews/ratings from a product. This Module implements an endpoint to get the rating summary for a single product (by SKU).

Install

Use composer to install this module. From your Magento 2 folder run:

composer require alex-le/magento2-review-summary
php bin/magento setup:upgrade 

Usage

Create an API Token and provide access to Marketing -> User Content -> Reviews

Use the following API Endpoint:

Endpoint Request method
/V1/products/:sku/review-summary GET

Response Example:

{
    "summary": 60,
    "count": 3
}