Skip to content

Basket service sample with .net core and akka actor model

Notifications You must be signed in to change notification settings

h-fathi/Akka.net_BasketService

Repository files navigation

Simple BasketService API on ASP.NET Core

A simple basket micro-service API built on ASP.NET Core with Akka.NET.

Prerequisites

  • ASP.NET 5.0 Runtime

Installation

dotnet restore

Starting the API

The API can be started using:

dotnet run -p ./src/BasketService/BasketService.csproj

Run tests

The tests can be run using:

dotnet test ./test/BasketServiceTests/BasketServiceTests.csproj

API Usage

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}.

About

Basket service sample with .net core and akka actor model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published