Enrichment services
An enrichment point within an integration is intended to provide a means to add information to the integration through the invocation of another integration or web service. With an enrichment operation, there is one key requirement: the enrichment works in a two-way manner so that the response can be used to enrich our integration.
For our example, we are going extend our current integration and utilize a genuine external service rather than Apiary or Mockable. The service we are introducing is a REST-based service (although the response is provided in the form of XML) from TimeZoneDB (https://timezonedb.com/api). Of course, it is also possible to mock this service if you prefer. Using TimeZoneDB allows us to introduce a common idea used by many public web services, that of the API Key, sometimes referred to as an API token. The integration will ultimately look like this:
As you can see, we have incorporated the enrichment step on the response leg from Mockable, which...