Forum Discussion
MichaelD
12 years agoLithium Alumni (Retired)
The 13.6 release added a rest api to fetch all products:
/restapi/vc/products/all
Hope this helps!
/restapi/vc/products/all
Hope this helps!
petermanser
11 years agoAce
MichaelD : The call to returns all products, but there's no rating information.
/restapi/vc/products/all
I also don't think the products are order by rating, right?
- MichaelD11 years agoLithium Alumni (Retired)The rest endpoint for returning all products currently has no relationship to rating. This means no rating information is returned with the call and the order in which products are returned has no relationship to the rating of the product.
- petermanser11 years agoAce
MichaelD so is there any way to achieve that goal?
as thilo pointed out, there's a leaderboard, but the documenation is quite unclear.
Thank you very much!
- MichaelD11 years agoLithium Alumni (Retired)A product is not required to have associated rating information. This is the reason that the /restapi/vc/products/all was implemented such that all products would be returned independent of the rating.
Once you have obtained the id for a product you will be able to call the endpoint /restapi/vc/products/id/34/ratings/key/key to obtain the rating information for the product.
Presently the rest API does not provide a single endpoint for obtaining a list of products ordered by ratings. But the two endpoints discussed here can be used to build such a list.
I hope this helps.
Related Content
- 3 months ago
- 6 months ago