Search by

drupal-eca-recipe / eca_lib_0032

Consumes a remote API through the HTTP Client Manager module, then exposes an ECA endpoint of its own with access control and a composed response.

Maintainers

Package info

gitlab.lakedrops.com/drupal/recipes/eca_lib_0032

Type:drupal-recipe

pkg:composer/drupal-eca-recipe/eca_lib_0032

Transparency log

Statistics

Installs: 60

Dependents: 0

Suggesters: 0

3.1.6 2026-09-01 14:36 UTC

This package is auto-updated.

Last update: 2026-09-01 14:37:42 UTC


README

ID: eca_lib_0032

This model has 2 parts:

  1. It demonstrates how to use API endpoints provided by the http_client_manager module and accessing the data they receive from remote services.
  2. It then also demonstrates how to use ECA endpoints to controll the access to that endpoint and building up a response to it.

In a follow up model, we will then show how the ECA endpoint can be made available to the HTTP Client Manager, so that one Drupal sites could be offering an API endpoint controlled by ECA, and another Drupal site then requested data from that API.

The creation of this module was recorded and the video with additional explanations can be watched here.

Installation

## Import recipe
composer require drupal-eca-recipe/eca_lib_0032

# Apply recipe with Drush (requires version 13 or later):
drush recipe ../recipes/eca_lib_0032

# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/eca_lib_0032

# Rebuilding caches is optional, sometimes required:
drush cr