This project is not covered by Drupal’s security advisory policy.

Implements hook subscriptions according to https://resthooks.org/

Go beyond webhooks

Webhooks are great, but really hard for users to setup. To combat this conundrum, REST Hooks are subscription-based. With REST Hooks, users need do little more than click a button to enable real-time updating.

This will allow any Drupal site to be automatically configured by and send webhooks to a service like Zapier. Essentially they are webhooks that can be automatically configured by webhooks from another system, making it easier for end users who are not developers.

Any entity action (create, update, delete) is supported.

There is also a manual UI to configure basic web hooks that send entity payloads on create/update/delete to an arbitrary URL.

Dependencies:

Drupal 7 - https://www.drupal.org/project/restws
Drupal 9 - JSON:API

Usage:

  1. Enable module
  2. Grant "administer rest hooks" and "access rest_hook resource" to a web service user
  3. Use middleware of your choice that supports REST Hooks (Zapier, etc.). Or you can configure hooks with webservices of course.

API endpoints to use (D7/RestWS):

  • Get subscription: GET /rest_hook/[id]
  • Create subscription POST /rest_hook
  • Update subscription: PUT /rest_hook/[id]
  • List subscriptions: GET /rest_hook

Creating a REST Hook requires these values:

  • entity_type: Drupal entity type to react on
  • operation: Any supported entity operation (insert, update, delete)
  • target: The hook URL
Supporting organizations: 

Project information

  • Project categories: Integrations
  • Created by djdevin on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases