Sample code of Getting Started with ASP.NET Web API 2 in VS 2017

Sample code of Getting Started with ASP.NET Web API 2Excerpt from the tutorial: HTTP is not just for serving up web pages. It is also a powerful platform for building APIs that expose services and data. HTTP is simple, flexible, and ubiquitous.

C# (33.3 KB)
 
 
 
 
 
4 Star
(1)
22,505 times
Add to favorites
7/24/2017
E-mail Twitter del.icio.us Digg Facebook
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Routing;

namespace ProductsApp
{
    public class WebApiApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            GlobalConfiguration.Configure(WebApiConfig.Register);
        }
    }
}