Learn how to use AEM’s Assets REST API to manage Content Fragments and the GraphQL API for headless delivery of Content Fragment content.
What are GraphQL and Assets REST APIs?
Now that you have created some content fragments, you can use AEM’s APIs to deliver them headlessly.
1. The GraphQL API allows you to create requests to access and deliver Content Fragments.
->To use this, endpoints need to be defined and enabled in AEM, and if required, the GraphiQL interface installed.
2. The Assets REST API allows you to create and modify Content Fragments (and other assets).
The remainder of this guide will focus on GraphQL access and Content Fragment delivery.
How to Deliver a Content Fragment Using GraphQL
Information architects will need to design queries for their channel endpoints in order to deliver content. These queries will generally only need to be considered once per endpoint per model. For the purposes of this getting started guide we will only need to create one.