10 use \Magento\Framework\Webapi\Rest\Request;
31 $this->_apiConfig = $apiConfig;
45 $routes = $this->_apiConfig->getRestRoutes(
$request);
47 foreach ($routes as $route) {
54 if (!empty($matched)) {
55 return array_pop($matched);
57 throw new \Magento\Framework\Webapi\Exception(
58 __(
'Request does not match any route.'),
60 \
Magento\Framework\Webapi\Exception::HTTP_NOT_FOUND
__construct(\Magento\Webapi\Model\Rest\Config $apiConfig)
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]