Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabfl/webhook
Easily test webhooks and other HTTP requests
https://github.com/gabfl/webhook
python3 sqlite webhook-service webhooks
Last synced: 3 months ago
JSON representation
Easily test webhooks and other HTTP requests
- Host: GitHub
- URL: https://github.com/gabfl/webhook
- Owner: gabfl
- License: mit
- Created: 2019-01-05T01:30:48.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-05-08T21:26:01.000Z (over 1 year ago)
- Last Synced: 2024-04-16T02:12:31.734Z (9 months ago)
- Topics: python3, sqlite, webhook-service, webhooks
- Language: Python
- Homepage: https://webhook.link
- Size: 1.05 MB
- Stars: 17
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webhook
[![Build Status](https://github.com/gabfl/webhook/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/gabfl/webhook/actions)
[![codecov](https://codecov.io/gh/gabfl/webhook/branch/main/graph/badge.svg)](https://codecov.io/gh/gabfl/webhook)
[![MIT licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://raw.githubusercontent.com/gabfl/webhook/main/LICENSE)Webhook is an open source project available at [https://webhook.link](https://webhook.link).
It allows you to easily test webhooks and other HTTP requests and log their attributes and payloads.
## Usage example
This projects generates random ephemeral routes like `/3989c985-0659-4c2d-b38f-9d83d74fe0bb`.
You can send any HTTP request to the route, for example:
```bash
curl -X POST https://webhook.link/3989c985-0659-4c2d-b38f-9d83d74fe0bb \
-H "Content-Type: application/json" \
-H "X-MyHeader: 123" \
-d '{"hello": "world", "is_true": true}'
```And the result will be available on `/inspect/3989c985-0659-4c2d-b38f-9d83d74fe0bb`:
![Demo](img/screenshot.png?raw=true)
## Installation
```bash
$ cd webhook/
$ pip3 install -r requirements.txt
$ python3 -m src
```## Try it out in docker
* Build the image: `docker build webhook:latest .`
* Run the image: `docker run -it --rm -p 5000:5000 webhook:latest`
* [Open in browser](http://localhost:5000)