Module Description
The External Data Source module provides a generic plugin for adding data gathered from an outside or third parties web service to Drupal Fields options.

Why using this module ? Using external data source in Drupal as Microsevice architecture is a best practice. By using this module we will be able to create a new data source as a plugin that we can find it when we configure the field type "external data source field" .

We can avoid the over use of Drupal Database by storing options that can be never be used. We can add a Plugin that will gather options from Elastic Serch REST API, Solr, Redis, CouchDb API, AWS, Azure, GCC, any Web-service ...

Why using Microservices ? Back to wikipedia to explain why we use this module:

A Microservice is a software development technique—a variant of the service-oriented architecture (SOA) architectural style that structures an application as a collection of loosely coupled services. In a microservices architecture, services are fine-grained and the protocols are lightweight. The benefit of decomposing an application into different smaller services is that it improves modularity and makes the application easier to understand, develop, test, and more resilient to architecture erosion. It also parallelizes development by enabling small autonomous teams to develop, deploy and scale their respective services independently. It also allows the architecture of an individual service to emerge through continuous refactoring. Microservices-based architectures enable continuous delivery and deployment.

How this module can help ? Any data source can be used as dynamic options of your Drupal Form Field: Select, Check-boxes or Auto complete that can be introduced as an ExternalDataSource Plugin. You can checkout the Countries plugin to full understand how this module can help you.

So you can configure which plugin will gather data for your field using "the field configuration form" and "Form Display options".

Example: Let’s say there’s a public api that allow you to gather countries list so you can create a plugin that use that API to gather countries list inside a select box instead of storing countries as a taxonomy or as an entity in your installation. You can also checkout the included examples for checking France Zip codes and Departements.

Special thanks: Many thanks to restcountries API Team for their wonderful work.

Project Usage
416
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
The External Data Source module provides a generic plugin for adding data gathered from an outside or third parties web service to Drupal Fields options.
Data Name
external_data_source

OPENAI CHATBOT

OPENAI CHATBOT

12:23:40
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.