So I’ve looked through the get Products request and understand how to cross-reference a product image href from the relationships using ids etc.
However I can’t see how to get the image href from the Get A Product request (https://api.moltin.com/v2/products/:id, or using the SDK, Moltin.Products.With(‘main_image’).Get(ID)).
Again, I do not need a list of products, just a single product. I’ve also created a main image relationship already.
I can’t see how to get an image href without also making a second api call to https://api.moltin.com
/v2/products, which I’d obviously like to avoid, or just to the /products endpoint, and pull out the product I want based on id, but that payload is way larger than i need to just display a single product.
Maybe I’m missing something…suggestions most welcome!