How to read all the images from a product with the api?

Hi!

I’m trying to get all the images and thumbnails from a product with a rest request. Given a product id, I can retrieve the whole product data, but I have observed that sometimes the „cover“ object is present with information about the images and thumbnails, and sometimes not.

Mainly for products wich have variations or are variations the cover object is empty, although they do have pictures.

How would be the right way to retrieve all the images related given a product id with a rest api call?

Thank you in advance!

R. Campos.