-1
At the moment I can return the list of objects (products).
I would like to show the information of each object with a formatted text, for example:
O produto (nome_produto) tem o preço (preço_produto) que é (descrição_do_produto).
@GetMapping("/list/{id}")
public ResponseEntity<List<Product>> listProducts(@PathVariable long id){
    try {
        Optional<Client> searchClient = clientService.getClientById(id);
        if (searchClient.isPresent()) {
            List<Product> wishlist = wishListService.getWishlist(searchClient.get()).getProduct();
            return new ResponseEntity<>(wishlist,HttpStatus.OK);
        }
        else {
            return new ResponseEntity<>(HttpStatus.NOT_FOUND);
        }
    }catch (Exception e) {
        return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
    }
}