I am using OCE as a headless cms with next js in a client project. I have used strapi like cms before and prefer using rest api to populate the frontend of the app. My problem is when I am making nested assets for eg like this:
- Homepage (Page) -> Hero (Section) -> Card (Card Component)
- About Us (Page) -> Our Values (Section) -> Card (Card Component)
I am not able to get all of the data from the rest api after level 1. The expand=all query param only returns the content till level 1 for eg: till Hero(Section) not the Card components.
I want to make an api call to an asset like Homepage which will return all the nested data as well.
How do I achieve that? Please help.