Install poetry.
curl -sSL https://install.python-poetry.org | python3 -
Install project dependencies.
poetry install
poetry run python run_worker.py
poetry run python run_flask.py
temporal workflow terminate --workflow-id=example@example.com
Use the curl command to send a POST request to http://localhost:5000/subscribe
with the email address as a JSON payload.
curl -X POST -H "Content-Type: application/json" -d '{"email": "example@example.com"}' http://localhost:5000/subscribe
The email address should be included in the query string parameter of the URL.
curl -X GET -H "Content-Type: application/json" http://localhost:5000/get_details?email=example@example.com
Send a DELETE
request with the email address in a JSON payload:
curl -X DELETE -H "Content-Type: application/json" -d '{"email": "example@example.com"}' http://localhost:5000/unsubscribe