Fix for Magento 2 searchCriteria not returning stock info in product listing/search.
"/rest/V1/products?searchCriteria" API endpoint" does not return information about stock in the "extension_attributes" section magento/magento2#22737
Now it's return all stock info about the products when you are using searchCriteria.
just upload the module files to this directory /app/code/Menacoders/Stock
Run these command lines
- php bin/magento setup:upgrade
- php bin/magneto index:reindex
- php bin/magento c:c
- php bin/magento c:f