Tag Archives: Web API

Web API – Health Checks

By | 15/12/2021

In this post, we will see how to configure and use Health Checks in a Web API .NET Core project.But first of all, what are the Health Checks?From Microsoft web site:“ASP.NET Core offers Health Checks Middleware and libraries for reporting the health of app infrastructure components.Health checks are exposed by an app as HTTP endpoints.… Read More »

Web API – Resource Filter

By | 03/11/2021

In this post, we will see how to create Resource Filter in a .NET 5 Web API project.First of all, what is a Resource Filter?“A Resource filter is the first to handle a request after authorization. It can run code before the rest of the filter pipeline, and after the rest of the pipeline has… Read More »

Web API – Action Filter

By | 27/10/2021

In this post, we will see how to create an Action Filter in a .NET 5 Web API project.First of all, what is an Action Filter?“An Action filter runs the code immediately before and after the controller action method is called. It can be used to perform any action before or after execution of the… Read More »

Web API – OData with .NET 5

By | 20/10/2021

In this post, we will see how to implement OData with .NET 5.But first of all, what is OData?From OData.org:“OData (Open Data Protocol) is an ISO/IEC approved, OASIS standard that defines a set of best practices for building and consuming RESTful APIs. OData helps you focus on your business logic while building RESTful APIs without having to worry… Read More »

Web API – Custom Data Annotation

By | 06/10/2021

In this post, we will see how to create a Data Annotation custom to use in a .NET 5 Web API project.First of all, what is a Data Annotation?From Microsoft web site:“The advantage of using the Data Annotation validators is that they enable you to perform validation simply by adding one or more attributes –… Read More »

Web API – Authentication using JWT

By | 21/07/2021

In this post, we will see how to implement token authentication in ASP.NET Core 5.0 Web API using JWT.But first of all, what is JWT?“JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be… Read More »