Example File Service WebAPI using ASP.NET Core, Clean Arch, MadiatR, CQRS.
- Clean architecture
- .NET 8
- Storage Azurite Emulator (For local storage)
- MediatR
- FluentValidation
- SendGrid
- Microsoft.Extensions.Azure
- Azure.Storage.Blobs
- Azure.Storage.Files.Shares
- Microsoft.EntityFrameworkCore.SqlServer
- Microsoft.AspNetCore.Identity.EntityFrameworkCore
- Swashbuckle.AspNetCore
- AutoMapper
- Serilog
- Xunit
- Moq
- Restore NuGet Packages
- Build solution
- Register user from https://localhost:7134/register
- Login and get token for authorize from https://localhost:7134/login
- Copy token from response body and click Authorze button on top right(swagger UI) and enter Bearer {Token}
- For Postman paste token in Authorization menu.
- In request body select form-data and select file to upload.