ASP.NET Web API - part 1

Introduction

A Web API is a server side interface consisting of one or more publicly exposed endpoints to work in a request-response message system, typically express in JSON or XML. These RESTful Web APIs are accessible via standard HTTP methods by a variety of HTTP clients including browsers and mobiles and tablets. 

ASP.NET Web API is a framework for building Web API's on top of .NET framework.

It has features similar to MVC like
- routing - controller - action - filter - model binder etc

It is part of ASP.NET platform and can be used with ASP.NET (MVC / Webform) applications and also as a standalone web service application.

Why Web API

Today, a web-based application is not enough to reach it's customers. People are very smart, they are using iphone, mobile, tablets etc. devices in its daily life. These devices also have a lot of apps for making the life easy. Actually, we are moving from the web towards apps world.
So, if you like to expose your service data to the browsers and as well as all these modern devices apps in fast and simple way, you should have an API which is compatible with browsers and all these devices.
For example twitter,facebook and Google API for the web application and phone apps.



WCF vc Web API
Unlike WCF Rest service, it use the full featues of HTTP (like URIs, request/response headers, caching, versioning, various content formats) and you don't need to define any extra config settings for different devices unlike WCF Rest service.

Web API Feature
1. It supports convention based CRUD actions like GET, POST, PUT, DELETE since it works with HTTP verbs.
2.

Comments

Popular posts from this blog

storing byte array as column value in datatable using c#

post form data and bind with model : using jquery ajax in mvc

Htc sensation XL mobile not working with windows 7 or above, along with Htc sync software