Service Entity
Aggregator Entity Reference Field

Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Field Aggregate - provides a way to one time storage of response returned in JSON/SOAP format by Service API. Definition of a Service API can be captured in a form and can be saved as a Service Entity.

User can add an entity reference field with field type aggregate, in which user will have an option to select response of which service API wants to aggregate within a reference field.

Just like other entity reference field which content list data of other entities ( node, users or taxonomy), Aggregate field will contains list data of response returned by the selected service entity.

Now this field which contains response returned by service entity can be used in any content type or other entity.

Steps to Test Module.

1. Create a service that returned response in json format that will be compatible to convert in associated array format.
2. Create more service and store the services in a form of entity.
3. Create a field with entity reference of aggregate, and user will have option to select only one service entity per field.
4. Use this field in any content type, and try to add a node, you can check that node form contain aggregate field which will contain response either in auto complete or select field widget.

Supporting organizations: 

Project information