working for creating the api for showing the filterd products list in the related products popup in add category page.