If the wcc-contentful gem is given a contentful management token, we can use that to create webhooks via the management API.
If the WCC::Contentful::Engine is required by the application, it mounts a controller to respond to webhooks.
Connect the two concepts - if the engine gets required by the application, on startup it should use the management API to ensure that a webhook exists for the appropriate publish events and that the webhook points at the appropriate endpoint.
If the
wcc-contentful
gem is given a contentful management token, we can use that to create webhooks via the management API.If the
WCC::Contentful::Engine
is required by the application, it mounts a controller to respond to webhooks.Connect the two concepts - if the engine gets required by the application, on startup it should use the management API to ensure that a webhook exists for the appropriate publish events and that the webhook points at the appropriate endpoint.