News

One of the most important ways to handle errors in your RESTful API is to use standard HTTP status codes to indicate the outcome of each request. Status codes are grouped into five categories: 1xx ...
Message handlers in Web API provide you the opportunity to process, edit, or decline an incoming request before it reaches the HttpControllerDispatcher.
Learn how to use HTTP status codes effectively to communicate the result of each request, provide useful feedback, and follow the HTTP protocol and best practices in your RESTful API design.
What it tries to solve? I've encountered three repetitive issues when dealing when REST entities. Storing REST resources in a normalized store Generating common API handlers for REST resources ...
A global exception handler using @ExceptionHandler along with @RestControllerAdvice= provides a standard way of handling exceptions throughout the application. In addition, it considerably reduces the ...
How to implement basic password authentication for a minimal API in ASP.NET Core using a custom authentication handler that validates the user’s credentials against a database.
VS Code Quick Tip: Install Curl to Speed Up REST API Testing While mostly known for its use in Linux-based development, the versatile curl tool for transferring data over HTTPS can be a nifty ...