https://github.com/asynched/py-webhook
A simple webhook implementation between two different API services. 🤝
https://github.com/asynched/py-webhook
fast-api flask python webhook
Last synced: 4 days ago
JSON representation
A simple webhook implementation between two different API services. 🤝
- Host: GitHub
- URL: https://github.com/asynched/py-webhook
- Owner: asynched
- Created: 2021-08-26T03:21:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-26T20:07:38.000Z (over 4 years ago)
- Last Synced: 2025-12-26T18:49:01.004Z (4 months ago)
- Topics: fast-api, flask, python, webhook
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A very (**very**) simple Webhook implementation in Python
A simple webhook implementation between two different API services
### About the app
This apps simulates a user registration in an application which is split between two services:
- A REST API
- A mailing service
When a user registers, a background task (sending the e-mail) is scheduled to run after the request. The API server sends the request with the user's e-mail to the mailing service which then sends the e-mail to the user.
### Application flow
**Obs:** Flowchart made with Mermaid, to visualize is use a markdown editor such as [StackEdit](https://stackedit.io).

### Installation
Requirements:
- Python
- Node
#### Initialize virtual environment
```
$ python -m venv ./venv
```
#### Install the dependencies
```
$ pip install -r requirements.txt
```
### Scripts
#### REST API
```sh
$ yarn dev:api
```
#### Mailing service
```sh
$ yarn dev:mail
```
#### Testing the integration
```sh
$ yarn send:request
```