This is a demo/practise setup with Sanic and Kubernetes
- Python 3.5+
- Docker
- Minikube
- Start minikube:
minikube start
- Build and deploy services:
./deployall.sh
- Make a test API call:
curl http://$(minikube ip):30080/cart/1234/getTotal
Available on NodePort 30080
. Provides access to other services.
Manages products. Currently only has a static list of products.
Available via the API gateway under prefix /products/
GET /
list of all productsGET /<product_id>
details of a product
Manages shopping carts. Currently only has a single static cart with id 1234
Available via the API gateway under prefix /cart/
GET /<cart_id>
details of a cartGET /<cart_id>/getTotal
cart's total price