This project is not covered by Drupal’s security advisory policy.

The data provider module provides a way to encapsulate an internal/external resource that can be used in multiple areas of a web application without rewriting logic that is found usually in the frontend application. Think of the data provider as a middleware between fetched data, and the presentation layer.

It comes with an HTTP Request fetcher which allows for consuming an internal/external API endpoint. The fetched data is then moved to the transformers stage, which can be a series of plugins that parses and manipulate the fetched data.

Both the fetcher, and transformer implementations are built using a pluggable architecture. Which allows developers to write custom code to transform/or fetch data from another source. The following plugins are provided with this module:

Fetcher:

  • HTTP Request

Transformer:

  • JSON Decode
  • Array Value Formatter

Data provider resources are cacheable, which normally is not the case when working with traditional HTTP requests outside the user browser, unless using another caching mechanism. Each resource also adheres to the permission system to allow certain roles access.

Supporting organizations: 
Development

Project information

Releases