Skip to content

rachfop/shopping-cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

28295a3 · May 2, 2023

History

10 Commits
May 2, 2023
May 2, 2023
May 2, 2023
May 2, 2023
May 2, 2023
May 2, 2023
May 2, 2023
May 2, 2023

Repository files navigation

Shopping cart course

source venv/bin/activate
# terminal one
python main.py
# terminal two
flask run
# terminal three: Start client
curl -X POST http://localhost:5000/[email protected]

Start client

curl -X POST http://localhost:5000/[email protected]

Add item to cart

curl -X POST -H "Content-Type: application/json" -d '{"id": 1}' http://localhost:5000/[email protected]/add_to_cart

Remove item from cart

curl -X DELETE -H "Content-Type: application/json" -d '{"id": 1}' http://localhost:5000/[email protected]/remove_from_cart

Get cart details

curl -X GET http://localhost:5000/[email protected]/cart

Checkout

curl -X POST http://localhost:5000/[email protected]/checkout

Run together

curl -X POST http://localhost:5000/[email protected]
curl -X POST -H "Content-Type: application/json" -d '{"id": 0}' http://localhost:5000/[email protected]/add_to_cart
curl -X POST -H "Content-Type: application/json" -d '{"id": 1}' http://localhost:5000/[email protected]/add_to_cart
curl -X GET http://localhost:5000/[email protected]/cart
curl -X DELETE -H "Content-Type: application/json" -d '{"id": 1}' http://localhost:5000/[email protected]/remove_from_cart
curl -X GET http://localhost:5000/[email protected]/cart
curl -X POST http://localhost:5000/[email protected]/checkout

Terminate Workflow

temporal workflow terminate --workflow-id [email protected]

Delete Schedule

temporal schedule delete --schedule-id [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages