如何使用REST API獲得暢銷產品


0

我正在開發一個使用Magento 2 REST API的Angular前端。我想獲取我的暢銷產品列表,但是找不到通過API獲得此功能的方法。

如何檢索此列表?

謝謝!

0

By Default there doesn't look to be a bestsellers endpoint, you would need to create your own using the Sales\Model\ResourceModel\Report\Bestsellers

You can see more information on how to create a custom API here


0

I created an extension that fetches best seller products via Rest API https://github.com/troublediehard/mma-customapi