alex-le / magento2-review-summary
Magento 2 Review Summary REST API
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: >=7.1
- magento/module-review: >=100.2.0
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 }