In frontend side, layer filter apply because of this below code. But, how can i use this below line into rest api as well? Is it possible to get $this->getRequest() object into rest api?
Below code source file :
vendor/magento/module-layered-navigation/Block/Navigation.php
foreach ($this->filterList->getFilters($this->_catalogLayer) as $filter) {
$filter->apply($this->getRequest());
}
Any help would be appreciated.
Thanks !!