Example of REST API with ASP.NET Core 5 (C#) with Entity Framework
Login: admin@manager.pl Password: Password123
Run in Docker: https://hub.docker.com/repository/docker/avenus/webapi
Check Online: https://webshopapi.azurewebsites.net/swagger/index.html
- General Info
- Postman documentation
- Technologies Used
- Features
- Database relationshop diagram
- Dependencies
- Project Status
- Contact
- License
- Manage users, shop and products
- Write with ASP.NET 5 (C#)
- For education purpose
https://documenter.getpostman.com/view/17808423/UVknubvY
- ASP.NET Core 5
- SQL Server 2014
- Register, activate user
- JWT Bearer Token authentication
- Role autorization and custom policy autorization
- Entity Framework with example data
- Loging errors and exeptions to file
- Loging request longer than 5s
- Pagination
- Files upload support
- XML/JSON output support
- Custom validators with FluentValidation
- Roles: Admin, Manager, User
- Search users, services, categories
- Sort tables
- Swagger documentation
https://dbdiagram.io/d/620e1b5d485e433543cb93ff
Packeges used in the project:
- AutoMapper 11.0.1
- AutoMapper.Extensions.Microsoft.DependencyInjection 11.0.0
- FluentValidation 10.3.6
- FluentValidation.AspNetCore 10.3.6
- Microsoft.AspNetCore.Authentication.JwtBearer 5.0.14
- Microsoft.AspNetCore.Mvc.NewtonsoftJson 5.0.14
- Microsoft.EntityFrameworkCore 5.0.14
- Microsoft.EntityFrameworkCore.SqlServer 5.0.14
- Microsoft.EntityFrameworkCore.Tools 5.0.14
- NLog.Web.AspNetCore 4.14.0
- Swashbuckle.AspNetCore 5.6.3
Project is finished and no longer being worked on. Project is only for example and education purpose.
Created by @pdm - feel free to contact me!
This project is open source. Fell free to use and modify.