Category Archives: Minimal APIs

Minimal APIs – Validation in .NET 10

By | 07/01/2026

In this post, we’ll explore the new validation feature introduced in .NET 10 a native, first‑class validation filter built directly into Minimal APIs.Before .NET 10, Minimal APIs encouraged a style where validation logic often lived inline inside handlers. While that approach works for small demos, it breaks down quickly in real applications. As endpoints grow,… Read More: Minimal APIs – Validation in .NET 10 »

Minimal APIs – Clean Architecture

By | 05/06/2024

In this post, we will see how to implement Clean Architecture with .NET Core Minimal APIs, enabling us to build applications that are both efficient and easy to maintain.But first of all, what is the Clear Architecture?Clean Architecture, proposed by Robert C. Martin (Uncle Bob), is a design philosophy that emphasizes the separation of concerns… Read More: Minimal APIs – Clean Architecture »

Minimal APIs – Pagination with Caching

By | 01/05/2024

When building REST APIs, pagination is a crucial feature for handling large datasets efficiently.In this post, we’ll explore two different approaches to implement pagination with caching in a C# Minimal API. Obviously, we will use the same project used in all Minimal APIs’ posts.Before to see the two implementations, we have to modify the method LoadDefaultValuesDB,… Read More: Minimal APIs – Pagination with Caching »

Minimal APIs – In Memory Caching

By | 20/03/2024

In this post, we will see how to use In-Memory Caching to improve the performances of our Minimal APIs.But, why should we use caching?“Caching temporarily stores copies of data so future requests for that data can be served faster. The idea is to reduce the number of expensive calls, such as database queries, making the… Read More: Minimal APIs – In Memory Caching »

Minimal APIs – Authorization

By | 22/11/2023

In this post, we will see how to implement authorization in Minimal APIs.We will use the same project that we created in the post “Minimal APIs – Minimal APIs with .NET Core” in which, we then added Authentication in this other post “Minimal APIs: Authentication with JWT“.In detail, we want to restrict the Insert, Delete… Read More: Minimal APIs – Authorization »

Minimal APIs – Authentication with JWT

By | 26/07/2023

In this post, we will see how to implement JWT (JSON Web Token) authentication in Minimal APIs.We are going to use the same project that we created in the post “Minimal APIs – Minimal APIs with .NET Core“, only changing the type of Dog.Id from Guid to int.These are all the classes: [DOGS.CS] [DATACONTEXT.CS] [IDOGCOMMANDS.CS]… Read More: Minimal APIs – Authentication with JWT »

Minimal APIs – Minimal APIs with .NET Core

By | 26/01/2022

In this post, we will see how to create a Minimal APIs with .net Core.But first of all, what is a Minimal APIs?From Microsoft web site:“Minimal APIs are architected to create HTTP APIs with minimal dependencies. They are ideal for microservices and apps that want to include only the minimum files, features, and dependencies in… Read More: Minimal APIs – Minimal APIs with .NET Core »