Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 869 Bytes

README.md

File metadata and controls

41 lines (26 loc) · 869 Bytes

ShopsRUs Discount Calculate

Commands

# Run Project
dotnet run --project ShopsRu.DiscountAPI

# Build Project
dotnet build

# build for production and publish
dotnet publish

# run tests
dotnet test

More details commands --> https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet


Calculate Discount

Given a bill endpoints returns the final invoice amount including the discount.

## Calculate Endpoint
Request to endpoint invoiceId in url
Endpoint: <project url>/api/v1/discount/calculate/{invoiceId}

Swagger

For a easy practice [Swagger](<Project Url>/swagger)