Skip to content

surjitbharath-hiddenfoundry/HiddenFoundry.ContentDeliveryApi.ExpandContentAreas

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •