git clone https://github.com/moisesduartem/dotnet-ef-restapi-template restapi/
dotnet new --install restapi/ # install the template according to .template.config/template.json
dotnet new restapi -o MyApp # create a new restapi solution for MyApp
The relational database used to create this template was Microsoft SQL Server 2019
.NET 6.0.400
- Unit testing - MSTest
- Object-Relational Mapper - Entity Framework Core 6.0.8
- Log library - Serilog
- Authentication manager - Identity
- Email sender - FluentEmail
- Fail fast validations - Fluent Validation
- Mediator implementation - MediatR
- Object mapper - AutoMapper
These are the endpoints implemented in this API:
- Sign in
- Sign up
- Forgot password
- Reset password
- Confirm email
- Get logged user profile
- Verify if the logged user is admin
- Verify if the user is Authorized
The .NET solution is structured according to the picture below