Building REST API with MVC 4 Web API - Part 1

added by Grishma Govani
5/14/2013 12:17:55 AM


While building a REST API in .NET has always been possible, simply due to the fact that .NET has always supported HTTP, there hasn't been any out-of-the-box way to easily do so. But REST assured (pun intended) .NET continuously evolves, and as of ASP .NET MVC 4 there is a built-in way to easily create a REST API. OK, let's get down to business. Enter MVC 4 Web API. Let's build a Web API project to maintain a database of Chuck Norris facts. First we need to create a new ASP .NET MVC 4 Web Application and select Web API as the project template.