How furkanisitan/dotnet-5-web-api-sample works
Main Components
a. Presentation Layer:
• Shop.WebAPI (REST API Layer)
• Controllers (v1)
• Infrastructure (DI, AutoMapper)
• Models
b. Business Layer:
• Shop.Business
• Abstract (Service Interfaces)
• Concrete (Service Implementations)
• Validation Rules
• Dependency Resolvers
c. Data Access Layer:
• Shop.DataAccess
• Abstract (Repository Interfaces)
• Concrete (EntityFramework Implementations)
• Database Context and Configurations
d. Domain Layer:
• Shop.Entities
• Concrete Entities
• DTOs
e. Core Layer:
• Cross-Cutting Concerns
• Exception Handling
• Validation
• Authentication
• Generic Repository Pattern
• Aspect-Oriented Programming
[Client Applications] → [Shop.WebAPI]
• ↑ ↓
• [Authentication] ← [Business Layer]
• ↓
• [Data Access Layer]
• ↓
• [Database]
Important Elements to Highlight
• JWT Authentication Flow
• Cross-Cutting Concerns:
• Exception handling
• Validation
• PostSharp aspects
• Repository Pattern Implementation
• Service Layer Pattern
• Entity Relationships
Relationships
• HTTP request flow
• Service dependencies
• Repository usage
• Database interactions
• Cross-cutting concern implementations
Technical Details
• EntityFramework Core usage
• Autofac dependency injection
• FluentValidation implementation
• JWT token authentication
• AutoMapper configurations