Tim Deschryver 1/22/2021

Creating a new C# API: Validate incoming requests

Read Original

This technical article explains how to validate incoming HTTP requests before they reach the domain layer in a C# API. It advocates for using the command pattern with MediatR to maintain a supple design, demonstrating how to define request records and implement validation to prevent cluttering the core domain logic.

Creating a new C# API: Validate incoming requests

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet