HiddenFoundry.ContentDeliveryApi.ExpandContentAreas
Install-Package HiddenFoundry.ContentDeliveryApi.ExpandContentAreas Configuration is optional and not specifying this will default the expand maximum level is 2. Which is enough to expand the first nested content area.
To configure the maximum levels deep you wish the recursively load through, add the following in your startup.cs
services.ConfigureRecursiveContentAreaContentApiOptions(o => o.MaxExpandContentAreaLevels = 4; });
Database has already been setup with an example page of nested blocks with content areas. Make a GET Http request accept application/json to https://localhost:5000/en/standard-page-with-blocks/?expand=*
Example:
GET /en/standard-page-with-blocks/?expand=* HTTP/1.1 Host: localhost:5000 Accept: application/json Cookie: EPiStateMarker=true