avivace / wh-dispatcher

A simple webhook listener to manipulate and redirect payloads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wh-dispatcher

Install the dependencies locally:

poetry install
poetry run uvicorn src.main:app --reload --env-file secrets.txt

Or run it with docker:

docker build -t wh-dispatcher .
docker run -it wh-dispatcher

Tests

Run tests:

poetry run pytest

Playing around

To mimick an arriving payload:

curl -X 'POST' \
  'http://http://0.0.0.0:8000/webhook/1' \
  -d '{"42": "your_json_data_should_go_here"}'

About

A simple webhook listener to manipulate and redirect payloads

License:GNU General Public License v3.0


Languages

Language:Python 79.8%Language:Dockerfile 20.2%