We are trying to use the Content Delivery API and we are struggling to get the assets like Images from the Content. No images or event the references are being returned for the content that we are using.
I first thought that we were doing wrong on how we store the media files but I also cannot get it to work for QuickSilver demo app.
The GUID: C66B75D3-1A34-4699-8378-D7E03D1AC36B is the guid of the Polo Knit Dress on the quicksilver app. Now I want to use the first asset for a thumbnail but I want to use the Content Delivery API to get that image url.
I tried to use the Service API and it does return the correct URL for the Product's Assets that I am looking for but the Service API does not allow me to get a collection of products where the Content Delivery API does allow me to fetch a collection of products.
Basically I want to make the following call.
Then I want to use that to show it in a grid with images.
Any help would be appreciated!
I think you might need to use a property model converter (IPropertyModelConverter) which allows you to customise the output send to the content delivery API. An example of it can be seen here: https://github.com/episerver/musicfestival-vue-template/blob/master/src/MusicFestival.Vue.Template/Infrastructure/BuyTicketBlockPropertyModelConverter.cs
Also these are some useful links:
Well the problem is, the Assets/Media are part of EpiServer Commerce, it should work out of the box. I am just confused that I have to implement a IPropertyModelConverter to get something back that is part of the product that we use. hmmm