ERams 2 Services
Services within ERams 2 exist at the integration level. They might talk to a Database; Marshall data into Redis; or Execute Models within CSIP.
Services are accessed through either Django Views as RESTful resources or through a data graph built on Graphene.
Sharing Configuration
Services should live within an application's services module. Services can poll other installed applications by asking for their delegates.
A service module has a delegate when:
- it contains a variable that is a subclass of the base delegate class
e.g.
# /er2_app/services/__init__.py
from .login import CustomLoginDelegate
from .schema import CustomSchemaDelegate