Sign inSign up

loadmill/webhook-service

By loadmill

Updated over 3 years ago

Receive and serve webhooks requests

Image
0

548

loadmill/webhook-service repository overview

Loadmill Webhook Service

Send webhooks to the service to verify the sent webhook details later.

Run

You will have to supply a DB environment variable that contains the connection string to your DB using DATABASE_URL

NOTE - We highly recommend using a dedicated DB for the service.

docker run -it -p 8080:8080 -e DATABASE_URL="<your-connection-string>" loadmill/webhook-service

Usage

Send your webhook to https://<your-host>/${UUID}/x/y/z where x/y/z is your dynamic path

<your-host>/${UUID} should replace your regular webhook domain target.

After your server send a webhook to the service you can query it using a GET request:

Send a GET request to https://<your-host>/requests/${UUID} and you will get the last webhook details for that UUID.

The webhook details that will be returned are:

{
  method,
  path,
  query,
  headers,
  body,
}

If you want a specific webhook and not the last one, you can use a query.

For example:

https://<your-host>/requests/${UUID}?method=DELETE&[email protected]

https://<your-host>/requests/${UUID}?headers.referer=https://example.com

Tag summary

Content type

Image

Digest

sha256:d3483bb7a

Size

46.6 MB

Last updated

over 3 years ago

docker pull loadmill/webhook-service