Welcome to ASP.NET Web API!
Modify the code in this template to jump-start your ASP.NET Web API development.
ASP.NET Web API allows you to expose your applications, data and services to the web directly over HTTP.
To learn more about ASP.NET Web API visit http://asp.net/web-api. The page features videos, tutorials, and samples to help you get the most from ASP.NET Web API. If you have any questions about ASP.NET Web API, visit our forums.
We suggest the following steps:
-
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 theValuesController
type. Your Web API name should end withController
. -
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. -
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 theHttpConfiguration
object passed to theRegisterApis
method.
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 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 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.