<?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Mstore\ProductsList\Api\ProductListInterface" type="Mstore\ProductsList\Model\ProductListRepository" />
    <type name="Mstore\ProductsList\Api\ProductListInterface">
        <plugin name="mstore_productlist_add_stock_attribute"
                type="Mstore\ProductsList\Plugin\ProductListRepositoryPlugin" />
    </type>
    <type name="Magento\Framework\EntityManager\Operation\ExtensionPool">
        <arguments>
            <argument name="extensionActions" xsi:type="array">
                <item name="Magento\Catalog\Api\Data\ProductInterface" xsi:type="array">
                    <item name="read" xsi:type="array">
                        <item name="stock_item" xsi:type="string">Mstore\ProductsList\Model\ReadHandler</item>
                    </item>
                </item>
            </argument>
        </arguments>
    </type>
</config>