modified the products api for listing products