Forum Stats

  • 3,782,552 Users
  • 2,254,664 Discussions
  • 7,880,119 Comments

Discussions

OCE Rest Api usage

User_J6XBM
User_J6XBM Member Posts: 1 Green Ribbon

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:

1) Homepage (Page) -> Hero (Section) -> Card (Card Component)

2) 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.