Please modify some code in file : Mage_Catalog_Model_Api2_Product_Rest
Go to this class and find the function _retrieveCollection()
and update code as per below.
Updated code:
protected function _retrieveCollection()
{
/** @var $collection Mage_Catalog_Model_Resource_Product_Collection */
$collection = Mage::getResourceModel('catalog/product_collection');
$store = $this->_getStore();
$entityOnlyAttributes = $this->getEntityOnlyAttributes($this->getUserType(),
Mage_Api2_Model_Resource::OPERATION_ATTRIBUTE_READ);
$availableAttributes = array_keys($this->getAvailableAttributes($this->getUserType(),
Mage_Api2_Model_Resource::OPERATION_ATTRIBUTE_READ));
// available attributes not contain image attribute, but it needed for get image_url
$availableAttributes[] = 'image';
$collection->addStoreFilter($store->getId())
->addPriceData($this->_getCustomerGroupId(), $store->getWebsiteId())
->addAttributeToSelect(array_diff($availableAttributes, $entityOnlyAttributes))
->addAttributeToFilter('visibility', array(
'neq' => Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE))
->addAttributeToFilter('status', array('eq' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED));
$dftAll = $collection->getSize();
$this->_applyCategoryFilter($collection);
$this->_applyCollectionModifiers($collection);
$pageSize = $this->getRequest()->getPageSize();
if (null == $pageSize) {
$collection->setPageSize($dftAll);
}
$products = $collection->load();
/** @var Mage_Catalog_Model_Product $product */
foreach ($products as $product) {
$this->_setProduct($product);
$this->_prepareProductForResponse($product);
}
return $products->toArray();
}