ECA and http services¶
Version v1
Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):
1 2 |
|
Purpose¶
This model has 2 parts:
- It demonstrates how to use API endpoints provided by the http_client_manager module and accessing the data they receive from remote services.
- 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.
Dependencies¶
- module
- eca_access
- eca_base
- eca_endpoint
- http_client_manager
Used plugins¶
Events¶
Actions¶
- Store result in a token
- Print result
- allow access
- Define response content
- Set response code
- Set json content type
Changelog¶
v1
-
Initial release.