Asp.net & Sql server fundas with Rajat Jaiswal

February 23, 2014

What is Web API ?

Filed under: Asp.net,MVC — indiandotnet @ 4:30 am
Tags: ,

HTTP is simple way to connect broad range of clients, including browser, mobile & desktop application. To achieve above broad range a new framework is introduce on top of .NET framework which is called ASP.NET web API.

With ASP.NET Web API you can call simple RESTFul service. You can perform various GET, PUT, POST, DELETE operation using Web API.

Web API is enable to service data request from client in both (JASON /XML) format according to client need.

Web API introduced with ASP.NET MVC framework in later stage. If you are familiar with MVC application then you will think it is same.

For example you want to get list of all the customers then a URL may be like below

http://mycustomerwebapi.com/Customers

Now suppose you want specific customer with customerId = 1 then you may need to write following URL in browser

http://mycustomerwebapi.com/customer/1

So above URL shows you can easily call the Web API services

You can easily host web API in IIS same as you host a web site.

I hope now we have a basic understanding of Web API.

In next topic we will discuss How to implement Web API.

Thanks & Best Regards,

Rajat Jaiswal

About these ads

4 Comments »

  1. Good to know, thanks Rajat.
    Could you please come up with an example in form of screenshots in next blog for better understanding.

    Comment by Piyush — February 24, 2014 @ 8:05 am | Reply

  2. if web services and WCF services are already there then why we need web API?

    Comment by Your Friend — February 27, 2014 @ 6:20 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Rubric Theme. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 232 other followers

%d bloggers like this: