Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Creating Web Services with F# > Building an ASP.NET Web API Service

Building an ASP.NET Web API Service

ASP.NET MVC 4 includes a great new feature called ASP.NET Web API for building modern HTTP services. ASP.NET Web API is an evolution of the various REST APIs that the WCF team has developed over the past few years combined with many of the nice features provided by ASP.NET MVC. This convergence has resulted in an excellent platform for building HTTP services that supports a number of features such as content negotiation (i.e., XML, JSON, etc.), routes, conventions, testability, and more.

You may have noticed that the template used to create the ASP.NET MVC 4 web application in Chapter 1 includes an option for another template in the Project Creation Wizard. Building an HTTP service with ASP.NET Web API and F# is quite easy with the help of that same Visual Studio extension. Assuming you installed the Visual Studio extension during the ASP.NET MVC discussion, all you have to do to create an F#/C# ASP.NET Web API solution is to open the Project Creation Wizard and select Visual F#?ASPNET?F# and C# Web Application (ASP.NET MVC 4). Then select WebApi Project and click OK.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint