Checkout Shopping List API
Note that you may need to increase your VM memory limit to 4GB or higher.
$ ./build.ps1
$ ./run.ps1
$ ./tests.ps1
$ dotnet restore
$ dotnet publish -o build -c Release
$ docker build -t fkhoda/checkout-shoppinglist-api .
With ELK monitoring:
$ docker-compose -f docker-compose-with-monitoring.yml up
Without ELK monitoring:
$ docker-compose up
$ docker push fkhoda/checkout-shoppinglist-api
Deploy ELK for monitoring (Optional)
$ git clone https://github.com/fkhoda/elk-kubernetes.git
$ cd elk-kubernetes
$ kubectl create -f .\kubefiles\ -R --namespace=default
Deploy Shopping List API with ELK monitoring
$ kubectl create -f ./kubefiles/sl-deployment-with-monitoring.yaml --namespace=default
$ kubectl create -f ./kubefiles/sl-service.yaml --namespace=default
Deploy Shopping List API without ELK monitoring
$ kubectl create -f ./kubefiles/sl-deployment.yaml --namespace=default
$ kubectl create -f ./kubefiles/sl-service.yaml --namespace=default
Method: POST
URI: /api/shoppingLists/{customerId}/items
Method: GET
URI: /api/shoppingLists/{customerId}/items[?pageNumber=1&pageSize=10]
Method: GET
URI: /api/shoppingLists/{customerId}/items/{itemName}
Method: PUT
URI: api/shoppingLists/{customerId}/items/{itemName}
Method: DELETE
URI: api/shoppingLists/{customerId}/items/{itemName}
sk_test_32b9cb39-1cd6-4f86-b750-7069a133667d
. You may have to specify it manually if you are not using the client library or its Unit Tests.