I have used C# asp.net core web-api to build this api. I have designed this api to store the logs in-memory. And for that, I have used dictionary where key is the processID & value is the processModel object. Also, utilized async-locking for multiple request handling using semaphore-slim. And for resource optimization, utilized cancellationToken everywhere.
- Swagger Enabled
- CORS Policy Included
- API Versioning Included
- Global Exceptions Handled with Custom Middleware
Clone the project
git clone https://github.com/masum035/Simple-Process-Management-API.git
Go to the project directory
cd Simple-Process-Management-API
Install dependencies
install .NET 8 SDK from the official site
Start the server
dotnet run
For Swagger Visualization, go to this url
https://localhost:44324/swagger/index.html