Product Reviews API filters are not working
-
Hello,
i'm using package bagisto-apiI noticed an issue with the Product Reviews API endpoint:
GET /api/shop/products/{productId}/reviews
According to the documentation, this endpoint supports the following query parameters:
rating
status
page
limit
sortHowever, these filters do not seem to work as expected. Sending requests with parameters such as:
/api/shop/products/1/reviews?rating=5
/api/shop/products/1/reviews?status=approved
/api/shop/products/1/reviews?sort=latestreturns the same results as an unfiltered request.
Could you please verify whether these query parameters are currently supported by the implementation, or if there is a discrepancy between the documentation and the API behavior?
Thank you.
-
Hello,
Thanks for flagging this. You're right — the rating, status, and sort filters on GET /api/shop/products/{productId}/reviews were not being applied. This has been fixed in the latest release (v2.0.0) — the filters now work as documented.
Please update to the latest version of the package, and the filtered requests will return correctly. Let us know if you still see any discrepancy after upgrading.
Best regards,
Bagisto Support