This is a simple calculator Web API Application utilizing C# and .NET 6.
Swagger UI: <localhost:port>/swagger/index.html
With Docker: This will create a container with the application Make sure that you have Docker installed on your machine & running.
- Clone the repository
- In root directory run
docker build . -t <image_name>
- After a successful build, run
docker run --name <container_name> -d <image_name> -p <port>:80
Without Docker:
- Clone the repository
- In root directory run
dotnet restore
- In root directory run
dotnet build
- In root directory run
dotnet run --project ./CalculatorApp.WebAPI/CalculatorApp.WebAPI.csproj
- ASP.NET Core 6 WebApi
- XUnit with Moq Testing Framework
- REST Standards
- CQRS with MediatR Library
- FluentResults
- Swagger UI
Add Numbers
/add-numbers?Addend1=<Type_Addend1_Here>&Addend2=<Type_Addend2_Here>
Subtract Numbers
/subtract-numbers?Minuend=<Type_Minuend_Here>&Subtrahend=<Type_Subtrahend_Here>
- Minuend: number which is subtracted from a given number(subtrahend)
Multiply Numbers
/multiply-numbers?Multiplicand1=<Type_Multiplicand1_Here>&Multiplicand2=<Type_Multiplicand2_Here>
Divide Numbers
/divide-numbers?Dividend=<Type_Dividend_Here>&Divisor=<Type_Divisor_Here>
- Divisor: number which divides a given number(dividend)