pnieuwenhuis / aspnetcore_basketservice

Simple BasketService API on ASP.NET Core and Akka.NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple BasketService API on ASP.NET Core

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

Installation

dotnet restore

Starting the API

The API can be started using:

dotnet run

API Usage

Getting the product list: GET - http://localhost:5000/api/products.

Getting the contents of a basket: GET - http://localhost:5000/api/basket/1.

Add an item to the basket: PUT - http://localhost:5000/api/basket/1/items with JSON body:

{
	"productId": 1000,
	"amount": 1
}

Remove an item from the basket: DELETE - http://localhost:5000/api/basket/1/items/{basketItemGUID}.

About

Simple BasketService API on ASP.NET Core and Akka.NET


Languages

Language:C# 99.8%Language:Batchfile 0.2%