-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Reviews API #4486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reviews API #4486
Conversation
Internal ticket: MAGETWO-56385 |
Hi @thomas-spigel |
Hi @thomas-spigel Closing this PR for now. But this PR is a good start for Review API implementation. 👍 |
[Owls] Page Builder Render Update & Skip MFTF Tests
I have extended the API with reviews. Current calls supported:
GET /V1/reviews (method getList)
GET /V1/reviews/:reviewId (method get)
POST /V1/reviews (method save)
DELETE /V1/reviews/:reviewId (method delete)
For it, I created a ReviewsRepository, along with interfaces for Review and ReviewSearchResult.
The GET /V1/reviews call supports searchCriteria.
I have put the restrictions to the 'Magento_Review::reviews_all' privileges on all of the calls.
I guess a bit of cleanup in the ReviewInterface itself should be still done, for what data should be returned and posted.
Additionally, I've created a setter function for status, that is setting the status id in the review based on the status code, along with a getStatus function, that is returning the status code based on the status id in the review.
Parts that are in the same module but not done are: ratings, summary, status calls.
Tests are not done yet too for it.