This is a REST API for managing Devices, built with .NET Core 10, Clean Architecture, Dapper, and SQL Server.
Fabricio Gabrielli da Silva
- Install .NET Core 10 SDK (https://dotnet.microsoft.com/en-us/download/dotnet/10.0).
- Restore packages:
dotnet restore. - Run migrations: Execute
Migrations/001_CreateDevicesTable.sqlon your SQL Server DB. - Update
appsettings.jsonconnection string. - Run:
dotnet run --project DeviceManagement.Api.
- Build and run:
docker-compose up.
- Swagger:
/swaggerwhen running.
- To generate a valid Jwt token, access endpoint
/api/auth/loginwith username =testand password =password01!.
- Run:
dotnet test. - Coverage:
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover.
- Finish authentication/authorization (validate the user credentials against a database or an identity provider).
- Handle concurrency with optimistic locking.
- Better code coverage for Notification Pattern.
- Improve Api documentation.
If issues, contact for clarification.