The \Magento\Store\Model\StoreResolver determins the active store from either the defined cookie or the passed request parameter but does not take the store code from the url into account (/rest/my_store_code/V1/...).
Preconditions
Tested with Magento 2.2.5 - other versions might also be affected
The
\Magento\Store\Model\StoreResolver
determins the active store from either the defined cookie or the passed request parameter but does not take the store code from the url into account (/rest/my_store_code/V1/...).Preconditions
Steps to reproduce
\Magento\Store\Model\StoreResolver::getCurrentStoreId()
Expected result
Actual result