Developer code samples

Sort by:

Sample code for the following tutorial on Started with ASP.NET Web APIExcerpt 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.[Excerpt]This tutorial shows how to support CRUD operations in an HTTP service using ASP.NET Web API.CRUD stands for "Create, Read, Update, and Delete," which are the four basic
Shows how to create an OData endpoint using ASP.NET Web API.The projects in this solution corrspond to the following Web API OData tutorials:01 Endpoint:
Creating an OData Endpoint02 Relations:
Working with Entity Relations03 Actions:
Supporting OData Actions The Open Data
This sample contains the finished code for the tutorial Sending HTML Form Data.[Excerpt from the tutorial follows]This tutorial shows how to upload files to a web API. It also describes how to process multipart MIME data.Here is an example of an HTML form for uploading a file:<fo
This sample contains the complete code for the following ASP.NET Web API tutorial:Dependency Injection for Web API Controllers[Excerpt]The Web API Dependency ResolverWeb API defines the IDependencyResolver interface for resolving dependencies. Here is the definition of the interf
This sample contains the completed project for the tutorial
Using Web API with Entity Framework on the site.Excerpt:This tutorial shows how to use ASP.NET Web API with ADO.NET Entity Framework, using code-first development.Entity Framework is an object/relatio
Sample code for the tutorial at,-part-1 [Excerpt]Part 1: Form-urlencoded DataThis article shows how to post form-urlencoded data to a Web API controller.
Overview of HTML Forms Sending Complex Types S
Leaderboard App with Azure Mobile Services .NET BackendThis sample shows how build a Windows Store app using Azure Mobile Services with a .NET backend. Azure Mobile Services provides a scalable and secure backend with built-in authentication, monitoring, push notifications, and o
This sample contains the complete source code for the following tutorial:Self-Host a Web API [Excerpt]Create a New ProjectStart Visual Studio 2010 and select New Project from the
Start page. Or, from the File menu, select New and then
Project.In the Templates pane, select Inst
0 results
No sample requests were found.
No favorites have been added.