haven't found product search api...
-
i was searching api which returns me matched result of my search key which is available in web but not in api.. what i found is
http(s)://example.com/public/api/products?name=’Leather Shoes’
but this has not worked for me. it hasn't return me the specific product rather it returns me all products....
whats wrong.?
-
Please specify the bagsito version.
Thanks
-
In api , it is retreiving data on the behalf of term. Try send term instead of name or try this in index method of ProductController.
//name into term
$request = request()->all();
if(isset($request['name'])){
$request['term'] = $request['name'];
}
// category_id into category
if(isset($request['category_id'])){
$request['category'] = $request['category_id'];
}