Hi everyone, I’m trying to build a blog with Strapi but, I’m facing a problem with the REST API.
This is the situation:
I have a dynamic zone called “sections” where I’m able to place sections of the page, and one of these sections - called “home-banner” - is made of 2 components.
The problem is that the content of these components are not returned at the API
Hi @Hedg0305 . For the Dynamic zone, you need to define the name of dynamic zone. you can try to populate using Deeply populate a dynamic zone with 2 components section in below docs.
If this doesn’t work, you can use the solution provided here
I am not entirely sure if the question is answered. I am having a similar challenge. Component data is not part of API response (list and id).
I can’t define requested fields/components in the query because the content may differ based on schema types. Is there any way to allow default get queries to return deep structure data, i.e., parent and the components of the content?