hi,
I have to try the products based on the sku, but I can not understand why this call rest does not work.
thanks
Return this:
{ "message": "Requested product doesn't exist", "trace": "#0 /var/www/html/shop/var/generation/Magento/Catalog/Model/ProductRepository/Interceptor.php(24): Magento\\Catalog\\Model\\ProductRepository->get('search', false, NULL, false)\n#1 [internal function]: Magento\\Catalog\\Model\\ProductRepository\\Interceptor->get('search', false, NULL, false)\n#2 /var/www/html/shop/vendor/magento/module-webapi/Controller/Rest.php(265): call_user_func_array(Array, Array)\n#3 /var/www/html/shop/vendor/magento/module-webapi/Controller/Rest.php(160): Magento\\Webapi\\Controller\\Rest->processApiRequest()\n#4 /var/www/html/shop/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\\Webapi\\Controller\\Rest->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#5 /var/www/html/shop/vendor/magento/framework/App/Http.php(115): Magento\\Webapi\\Controller\\Rest\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#6 /var/www/html/shop/vendor/magento/framework/App/Bootstrap.php(258): Magento\\Framework\\App\\Http->launch()\n#7 /var/www/html/shop/pub/index.php(37): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http))\n#8 {main}" }
Solved! Go to Solution.
this is the correct request!
https://192.168.1.1/index.php/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=s... searchCriteria[filter_groups][0][filters][0][value]=dib%&searchCriteria[filter_groups][0][filters][0][condition_type]=like
this is the correct request!
https://192.168.1.1/index.php/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=s... searchCriteria[filter_groups][0][filters][0][value]=dib%&searchCriteria[filter_groups][0][filters][0][condition_type]=like