watermarkchurch / wcc-contentful

An alternative to Contentful's contentful.rb ruby client, contentful_model, and contentful_rails gems all in one.
MIT License
2 stars 1 forks source link

Automatically ensure a webhook points to mounted webhook engine #39

Closed gburgett closed 6 years ago

gburgett commented 6 years ago

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.

gburgett commented 6 years ago

Working this as part of watermarkchurch/watermarkresources.com#41

Gem will expose a global "on entry updated" hook which we will use to trigger reindexing in Algolia