Sign in to Community
Sign in to view all badges
We are trying to get create products with content fragments. But, each product has its own variants. How can we get as JSON each CF with its variants?
With this I am getting only the CF, but not its variants. Thanks!
Hi @AD-Engineer ,
We have HTTP Asset APIs available for Content Fragment. Let me give you example. if your CF is created under '/content/dam/products' then you can access all the CF inside products folder using below GET call-
I have created a Simple CF with variant to showcase what I mean.
1. Created a new CF under '/content/dam/we-retail' using OOTB CF model.
2. Created two variations (with different RTE authored) and saved.
3. Now accessing http://localhost:4502/api/assets/we-retail.json is giving me both variants.
Please watch this video to understand-
Hope it helps!