A simple basket micro-service API built on ASP.NET Core with Akka.NET.
- ASP.NET 5.0 Runtime
dotnet restore
The API can be started using:
dotnet run -p ./src/BasketService/BasketService.csproj
The tests can be run using:
dotnet test ./test/BasketServiceTests/BasketServiceTests.csproj
Getting the product list: GET - http://localhost:5000/products
.
Getting the contents of a basket: GET - http://localhost:5000/baskets/1
.
Add an item to the basket: POST - http://localhost:5000/baskets/1/add
with JSON body:
{
"productId": 1000,
"amount": 1
}
Remove an item from the basket: DELETE - http://localhost:5000/baskets/1/items/{basketItemGUID}
.