This module turns Drupal into an API backend that provides the main content and page metadata only.
The module renders pages into a tree of custom elements and provides JSON responses containing the page metadata and content. While the responses are always served in JSON, the page content may be delivered using custom elements serialized as markup or as a JSON data structure.
The module works by providing a new custom_elements format (e.g. enabled via appending ?_format=custom_elements to the URL) and integrates with Drupal's routing system - thus pages are processed as regular by Drupal, meaning all regular routing, authentication and request processing stays working. For rendering content as custom elements, the custom elements module is used and required.
Usage
- The module is providing the API for Lupus Decoupled Drupal, which makes it possible to access it via a simple API-prefix
/ce-api/<request-path>, but can be used on its own as well. - The module makes Drupal provide an API backend that may be used with varying frontend technologies that render the custom elements.
Dependencies:
- Custom elements
- Metatag - for adding in metatags (could be made optional)
Contribute
- Reach out at #drunomics-contribute at the Drupal Slack!
Project information
- Project categories: Decoupled
- Ecosystem: Lupus Decoupled Drupal
82 sites report using this module
- Created by fago on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.



