5

Minimal APIs

This chapter covers Minimal APIs, a simplified way of setting up and running .NET applications. We explore what makes minimal hosting and Minimal APIs a pivotal update in ASP.NET Core as we unravel the simplicity of creating APIs with less ceremony. We cover many possibilities that ASP.NET Core Minimal APIs bring, like how to configure, customize, and organize those endpoints.

We also explore using Minimal APIs with Data Transfer Objects (DTOs), combining simplicity with effective data transfer management to structure API contracts effectively.

Inspired by technologies like Express and Node.js, Minimal APIs bring a fresh perspective to the .NET world, allowing us to build lean and performant APIs without compromising resiliency. ...

Get Architecting ASP.NET Core Applications - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.