Wednesday 

Room 6 

11:40 - 12:40 

(UTC+02

Talk (60 min)

Refactoring an ASP.NET Core WebAPI Controller based API to a minimal API

We all use and build Web APIs. If you are a C# developer, these are most likely based on ASP.NET Core controllers. Perhaps you have heard of the minimal API approach, but thought these were only relevant for Node.js developers coming to C#. However, this approach does offer benefits for C# developers as well. But how to get started with this new approach if all you have is a controller-based Web API? In this talk, we will migrate an existing ASP.NET Core controller-based API to a minimal API approach together. During the migration, you will learn what the minimal API approach is all about and what the benefits of this approach are for you as a C# developer. Of course, we will discuss how to keep a good separation of concerns in the migrated code as well, because that is a major benefit of using controllers. Do not expect a lot of slides in this talk. Most of the talk will be spent in code. So come to this talk and leave with enough knowledge to be able to start migrating your existing Web API into this new minimal API approach and be ready for the future.

Johan Smarius

Johan has been developing software since 1996 and has worked with .NET since version 1.0. With extensive experience as a lead developer and architect for .NET solutions, he is deeply passionate about clean coding and test-driven development. At JMAC Software Solutions and Bergler, he designs architectures for .NET solutions and coaches and trains developers in the domain of software engineering in general and Microsoft technologies in particular.