AEM Content Fragment Delivery with OpenAPI aem-content-fragment-delivery-with-openapi
In ÃÛ¶¹ÊÓÆµ Experience Manager (AEM) as a Cloud Service, the AEM OpenAPI for Content Fragment Delivery:
- is an OpenAPI that is optimized for live delivery of AEM Content Fragments in JSON format
- offers a modern CDN integration that allows active content invalidation
- focuses on content delivery (performance, scalability, CDN integration, optimized JSON control and output)
- includes the ability to hydrate JSON for referenced fragments and assets
This API:
-
is the successor to Content Fragments Support in the AEM Assets HTTP API
-
supplements the Content Fragments and Content Fragment Models OpenAPIs, that allow you to manage the Content Fragments and Content Fragment Models (CRUD)
-
is a HTTP REST alternative to the AEM GraphQL API for use with Content Fragments
For full documentation see .
- the Cloud Service program and environment ID(s)
- details of the use-case you want to solve with the Content Fragment Delivery OpenAPI
- details of all your contacts that ÃÛ¶¹ÊÓÆµ should respond to, and keep informed about the request, and project (if required)
Caching caching
AEM integrates with the AEM CDN Fastly. This means that JSON responses served on the publish tier are cached at the Fastly level.
Responses are then cached, based on predefined caching headers (cannot be configured):
- Responses are cached for 5 minutes in the browser/client cache
max-age
=300
- Responses are cached for 1 hour on the CDN cache
s-maxage
=3600
- Stale content can be served while revalidating new requests for up to 1 hour
stale-while-revalidate
=3600
- Stale content can be served, by error, for up to 1 day
stale-on-error
=86400
Content Fragment Delivery with OpenAPI supports active CDN cache invalidation. This means that whenever content is updated, or published, the corresponding JSON OpenAPI responses are automatically invalidated, via a soft purge request to Fastly. This allows you to see changes reflected in the JSON output, before the actual CDN cache age (s-maxage
) is reached.
Availability availability
The Content Fragment Delivery with OpenAPI is available on Preview and Publish tiers. The OpenAPI delivers Content Fragments in JSON format, for both preview and live delivery.
For preview the Content Fragment Delivery with OpenAPI can:
- publish to Preview
- enable access to preview with IP allow list
- get the preview URL
CORS cors
CORS allowed origins define the origins that can call the API.
The CORS allowed origins defined on the dispatcher configuration side, specifically for GraphQL, are not taken into consideration by this API.