ASP.NET Core Minimal APIs in C# - english - virtual



Kursarrangør: Glasspaper AS
Sted: Nettkurs / Nettstudie
Hele landet
Type:Nettkurs og nettstudie
Studie / yrkesutdanning
Undervisningstid: kl 09:00 - 16:00
Varighet: 4 days
Pris: 23.900
Neste kurs: 29.09.2026 | Vis alle kursdatoer

We provide virtual course about ASP.NET Core Minimal APIs in C# in english. Build Production-Ready RESTful APIs with Modern .NET. Master the art of building lightweight, high-performance APIs using ASP.NET Core Minimal APIs.

Course description:
ASP.NET Core Minimal APIs have faster startup times, less boilerplate, and superior performance compared to traditional MVC controllers. Learn the streamlined approach that reduces boilerplate code while maintaining enterprise-grade quality, security, and performance. Move beyond basic CRUD operations. This hands-on course covers authentication, authorization, testing, error handling, logging, performance optimization, and architectural patterns - everything needed to build production-ready APIs that scale.

Course content:
Module 1 - Introduction to Minimal APIs:
• Minimal APIs vs MVC controllers comparison
• Performance characteristics and benchmarks
• When to use Minimal APIs

Module 2 - Environment Setup:
• .NET SDK installation and verification
• IDE setup (Visual Studio, VS Code, Rider)
• Project structure and organization

Module 3 - ASP.NET Core Fundamentals:
• ASP.NET Core architecture
• Program.cs and WebApplication
• Middleware pipeline
• Configuration system (appsettings.json, environment variables, user secrets)

Module 4 - Building Minimal API Endpoints:
• Endpoint definitions and lambda expressions
• Route templates, parameters, and constraints
• HTTP verbs (GET, POST, PUT, DELETE, PATCH)
• Request binding (route, query, body, headers, forms)
• Response serialization and content negotiation

Module 5 - Results and Response Types:
• IResult interface fundamentals
• Results vs TypedResults comparison
• Common result types (Ok, Created, NotFound, BadRequest, NoContent)
• Custom result types and content negotiation
• Proper HTTP status codes and headers
• OpenAPI documentation benefits

Module 6 - OpenAPI and Documentation:
• OpenAP I/ Swagger setup and configuration
• Testing endpoints with Swagger UI
• Customizing API documentation with XML comments
• API versioning strategies
• Generating client code from OpenAPI specs

Module 7 - Middleware and Filters:
• Middleware pipeline
• Custom middleware patterns (inline, class-based, factory-based)
• Endpoint filters for request/response manipulation
• Filter ordering and execution flow
• When to use middleware vs filters

Module 8 - Validation:
• Data Annotations for simple validation
• Fluent Validation for complex scenarios
• Custom validators for business rules
• Endpoint filters for validation

Module 9 - Dependency Injection
• DI fundamentals in ASP.NET Core
• Service lifetimes (transient, scoped, singleton)
• Constructor injection in endpoints
• Options pattern for configuration

Module 10 - Entity Framework Core:
• EF Core setup and DbContext configuration
• Entity modeling and relationships (one-to-many, many-to-many)
• Migrations workflow
• LINQ queries (filtering, sorting, projection, aggregation)
• IQueryable vs IEnumerable

Module 11 - Clean Architecture:
• Layered architecture
• Domain, Application, Infrastructure, and API layers
• Dependency inversion
• Project structure

Module 12 - Repository Pattern:
• Repository pattern
• Generic repository implementation
• Unit of Work pattern
• EF Core integration

Module 13 - Testing:
• Unit testing
• Mocking
• Testing Minimal API endpoints
• Integration testing with WebApplicationFactory
• Testing authenticated endpoints
• AAA (Arrange-Act-Assert) pattern

Module 14 - Authentication:
• ASP.NET Core Identity setup
• JWT token generation and validation
• User registration and login endpoints
• Refresh token patterns

Module 15 - Authorization:
• Role-based authorization
• Policy-based authorization
• Claims and custom policies
• [Authorize] attribute

Module 16 - Error Handling:
• Global exception middleware
• Problem Details (RFC 7807)
• Custom exception types
• Development vs production error details

Module 17 - Logging:
• Structured logging with Serilog
• Log levels
• Multiple sinks (console, file, database)
• Correlation IDs

Module 18 - Code Organization:
• Extension methods for endpoint registration
• Route groups and prefixes
• Vertical slice architecture
• Feature-based organization

Module 19 - Performance Optimization:
• Response caching strategies
• In-memory caching with IMemoryCache
• Distributed caching concepts
• Rate limiting and throttling
• EF Core query optimization (AsNoTracking, compiled queries)
• Async/await patterns

Module 20 - Deployment and Production:
• Health checks
• CORS configuration
• Environment-specific configuration
• Background services and hosted services
• Azure deployment
• Monitoring

Module 21 - Why Minimal APIs:
1) Less Boilerplate:
• Fewer files and classes to manage
• Direct route-to-handler mapping
• Reduced ceremony for simple endpoints

2) Better Performance:
• Faster startup times
• Reduced memory footprint
• Optimized for high-throughput scenarios

3) Modern C# Features:
• Leverages latest C# language features
• Functional programming patterns
• Strong typing with type inference

4) Perfect for:
• Microservices architecture
• Serverless functions
• Lightweight APIs
• High-performance scenarios
• Modern cloud-native applications

Instructor: Rick Beerendonk

Rick Beerendonk is instructor of the course. 30+ years software development experience, senior consultant at Oblicum, Microsoft MVP. Has trained thousands of developers across Europe in .NET, modern web development, API design, and software architecture.

Target audience:
• Backend developers wanting to master modern API development with .NET
• C# developers ready to adopt Minimal APIs for new projects
• ASP.NET developers upgrading from traditional controllers or older .NET versions
• Full-stack developers needing a solid foundation in API design and implementation
• Software architects evaluating Minimal APIs for microservices or enterprise systems

Prerequisites:
• Basic C# knowledge (6+ months experience). Understanding of HTTP and REST concepts helpful but not required

Language:
• English course material, english speaking instructor

Course material:
The course fee includes course documentation and exercises