Web API

I’m currently implementing WebAPI into my company’s external web services.  It was pretty easy to learn and add to our existing WCF web services.  I used online videos (especially PluralSight) and ASP.NET to get acquainted with Web API:

I went with MVC version 4.0 and I created methods using a routing of “Api/{controller}/{action}”

The automatic help documentation is very impressive.

I first created a sample Web API project and then copied and pasted the code into my existing web service project.  I did have to add a lot of references and install a lot of packages from NuGet but it was fairly easy to do.

I liked testing the APIs with Fiddler.  It is easy to switch back and forth between JSON and XML.

Leave a comment