And as you might have heard, the latest buzz in ASP.NET world is Web APIs. The clean routing and real (read natural) HTTP integration makes this so exciting and compelling that most of the devs will fall in love with it at first sight. But wait, that’s not the silver bullet. Just because now you have another (and better) way to serve your content over HTTP, you should not start running towards it.
Your new friend, MVC, is also capable of serving JSON and creating HTML easily and that’s what you were doing till now. Rick Strahl posted a concise blog post on where exactly Web API fits into. As he mentioned, Web API comes with a slight overhead. So for every small AJAX request, you don’t need to (should not) write an API; even a MVC Controller method will be fine for such thing.
I am planning to implement my upcoming assignment at work with Web API. Let’s see how it turns out!!!
More on Web API: http://www.asp.net/web-api