We suggest the following steps:

  1. Name your Web API
    Requests are routed to Web APIs based on their name. The Web API in this template will respond to requests sent to /api/values, but you can change this by renaming the ValuesController type. Your Web API name should end with Controller.
  2. Implement your Web API actions
    By convention, Web API actions map directly to HTTP methods, like GET, POST, PUT, and DELETE. To handle a given HTTP method just prefix your action name with the HTTP method you want to handle. Action parameters are bound to data from the request through model binding. Data returned from an action is formatted in the response as JSON or XML as requested by the client.
  3. Add Web APIs and routes
    Add additional Web APIs using the Add New Item dialog. You can also fully control the URI space for your Web APIs in Global.asax by adding routes to the HttpConfiguration object passed to the RegisterApis method.
ASP.NET Home

Home of ASP.NET

ASP.NET is a free, fully supported Web application framework that helps you create standards-based web solutions. Whether you're new to ASP.NET or an experienced developer, the ASP.NET website is your source for news, training, downloads, and support.

NuGet Gallery

NuGet Gallery

NuGet is a Visual Studio extension that makes it easy to install and update open source libraries and tools in Visual Studio. To see available packages, visit the NuGet gallery. You can also develop your own package and share it in the gallery.

Find Hosting

Find Web Hosting

You can easily find a web hosting company that offers the right mix of features and price for your applications. Visit Microsoft.com/web to explore offerings from many providers.