Skip to content

A simple webhook implementation between two different API services. 🤝

Notifications You must be signed in to change notification settings

asynched/py-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Application flow

Installation

Requirements:

  • Python
  • Node

Initialize virtual environment

$ python -m venv ./venv

Install the dependencies

$ pip install -r requirements.txt

Scripts

REST API

$ yarn dev:api

Mailing service

$ yarn dev:mail

Testing the integration

$ yarn send:request

About

A simple webhook implementation between two different API services. 🤝

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages