Skip to content
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

Blocks API: Add average rating to the products API response #22941

Merged
merged 1 commit into from
Mar 6, 2019

Conversation

ryelle
Copy link
Member

@ryelle ryelle commented Mar 5, 2019

See woocommerce/woocommerce-blocks#468 – We want to show the star rating display in the block preview. To do that, we need the product rating in the API response.

To test

  1. Make a request to /wc-blocks/v1/products
  2. Expect: You should see an average_rating property, with the correct rating for each product.

Copy link
Contributor

@timmyc timmyc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed average rating is now in the response.

@mikejolley mikejolley merged commit 4160038 into add/blocks-rest-api Mar 6, 2019
@mikejolley mikejolley deleted the add/blocks-rest-api-rating branch March 6, 2019 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants