Web API
7 Proven Strategies for Optimal API Design Practices
.
Hello Readers, This is the last article of the Year 2023.In this article, we will figure out 7 Proven Strategies for the Best API Design Practices. So, Let’s begin. Follow the below practices for creating the Best API for Seamless Integration 1. Do not use Verbs in URI The best API design needs the best…

.NET Core Web API Data validation with FluentValidation
.
In this article, we will learn .NET Core Web API Data validation with FluentValidation. What is Data Validation in Web API? Data Validation simply tells the rules and validation that we apply to Data. So, data Validation in Web API means, validating the data that is being sent by the client and if the data…
How to consume REST API from ASP.NET Razor Web Pages?
.
In this article, we will consume an API from the ASP.NET Razor web page where REST API is secured with API Key. What is an API? Web API is the Microsoft open source technology for developing REST services based on HTTP protocol. ASP.Net Web API is a framework for building, and consuming HTTP-based services. The advantage of…
How to Enable HTTPS for ASP.Net Web API?
.
In this blog, we will see how to enable a Web API service to the server over HTTPS only and not on HTTP.If you are new to Web API, then read my earlier blogs on ASP.Net Web API here.As you know ASP.Net Web API runs over HTTP protocol. Suppose you want to serve your Web…
Basic Authentication in Web API
.
In this blog, we will see the implementation of basic authentication in Web API. Security is very important aspects while working on the distributed application. While exposing an API we must take care about security. Basic Authentication is a simple authentication mechanism where the client sends requests with an Authorization header with word Basic. In…
Consume Web API 2 in C# Console Application
.
Web API can be consumed either using JQuery, Angular JS, MVC or Console Application. In this blog, we will consume Web API 2 using HttpClient in a Console Application. I have already created a Web API2 demo project earlier, you may visit below link to see how can we create a Web API 2 project. Web…
Web API2 CRUD operations using Entity Framework and MVC
.
In this blog, we will perform Web API CRUD operations using Entity Framework and ASP.Net MVC. What is ASP.Net Web API? Web API is the Microsoft open source technology for developing REST services based on HTTP protocol. ASP.Net Web API is a framework for building, consuming HTTP based services. The advantage of Web API is…
Consume Web API 2 using JQuery in MVC application
.
In this blog, we will see how to create a Web API in Visual Studio 2017 and consume this API from MVC application using jQuery. Web API is the Microsoft open source technology for developing REST services based on HTTP protocol. ASP.Net Web API is a framework for building, consuming HTTP based service. The advantage…
Important ASP.Net Web API Interview questions and answers
.
In this blog, I have collected important ASP.Net Web API interview questions and answers.Whether you are a fresher or have ASP.Net development experience, the ASP.Net Web API interview questions given below will prove to be very beneficial for you. If you are working on Microsoft Technologies, especially the ASP.Net framework, then you must be aware of ASP.Net…
ASP.Net Web API – Media Type Formatter
.
This is another series of Web API blog. In the previous blog, we have seen about Web API Security, Routing in Web API. This blog will help you to understand Media Type Formatter in ASP.Net Web API. Earlier I have already written about “How do I get ASP.Net Web API to return JSON” What is…
ASP.Net Web API Security
.
In the previous blog, I wrote about Routing in Web API. I have also explained, How to create a secure Web API? in my earlier blog. If you are new to ASP.Net Web API then please start from the beginning level. What is ASP.Net Web API?In this blog, let’s discuss the Web API security in details.Web API…
ASP.Net Web API Routing
.
In this blog, we will see about the Routing system in ASP.Net Web API. Routing is one of the important sections in ASP.Net Web API. What is Routing? Routing is the process which decides which action and which controller should be called. .NET Web API supports 2 types of routing. Convention-based Routing in ASP.NET Web…
What are Idempotent and Non-Idempotent methods?
.
After reading this article, you will be confident about Idempotent and Non-Idempotent methods?Let’s start by understanding the meaning of Idempotent.Idempotent means “unchanged in value following multiplication by itself” Idempotent Methods Idempotent HTTP methods are those methods which will not make any modification event after calling multiple times.For eg – If your client makes a DELETE request by…
How to create secure Web API in asp.net
.
In my earlier blog I wrote about how to create a web api in asp.net , now your WebAPIi is ready to work. Web API security is very important especially if you are allowing it to external users to consume it.Now suppose you want to control your web api in the context of security. How you…
How do i get ASP.Net Web API to return JSON
.
In my earlier blog, we have seen How to create a Web API? In this blog, we will see about how to return JSON data instead of XML in Web API.ASP.Net Web API returns XML by default. But we can change so that it should return JSON instead of XML. To do this open “WebApiConfig.cs” file…
How to create ASP.Net Web API
.
In this blog, I have created ASP.Net web api using Visual Studio 2015.If you need to know what is web api then please read one of my previous blog. Follow the below steps to create ASP.Net Web API Open Visual Studio 2015 and follow the below steps:1. File -> New Project and Select ASP.Net Web…
What is Web API? When should we use in our projects?
.
Web API is the Microsoft open source technology for developing REST services based on HTTP protocol. ASP.Net Web API is a framework for building, consuming HTTP based service. The advantage of Web API is that it can be consumed by a wide range of clients like a web browser and mobile applications. ASP.Net Web API…

