Assets HTTP API
The Assets HTTP API encompasses the:
- Assets REST API
- including support for Content Fragments
The current implementation of the Assets HTTP API is based on the REST architectural style and enables you to access content (stored in AEM) via CRUD operations (Create, Read, Update, Delete).
With these operation the API lets you operate Adobe Experience Manager as a headless CMS (Content Management System) by providing Content Services to a JavaScript front end application. Or any other application that can execute HTTP requests and handle JSON responses. For example, Single Page Applications (SPA), framework-based or custom, require content provided over an API, often in JSON format.
Assets HTTP API and Content Fragments
Content Fragments are used for headless delivery, and a Content Fragment is a special type of asset. They are used to access structured data, such as texts, numbers, dates, among others.
Using the Assets REST API
Access
The Assets REST API uses the /api/assets
endpoint and requires the path of the asset to access it (without the leading /content/dam
).
- This means that to access the asset at:
/content/dam/path/to/asset
- You need to request:
/api/assets/path/to/asset
For example, to access /content/dam/wknd/en/adventures/cycling-tuscany
, request /api/assets/wknd/en/adventures/cycling-tuscany.json
/api/assets
does not need the use of the.model
selector./content/path/to/page
does require the use of the.model
selector.