Feature request from meng-tian, posted on GitHub Aug 12, 2016
The REST endpoint of product list is:
http://<magento_host>/rest/<store_code>/V1/products
It is intuitive to think the result of this endpoint should be filtered by <store_code>
. For instance, specifying store code default
should return products in default store; specifying store code all
should return all products. However, in Magento 2.0.8, specifying different store code return the same result. This issue also apply to Magento 2.1.0 (#5723).
This pull request will take <store_code>
into consideration when retrieving products. A plugin is enabled only for web services areas. The plugin is not enabled for global dependency injection configuration as it may affect users in other areas, e.g., front store.
Note: this pull request depends on #6095.