Source code for ASP.NET WebApi Article for Code Magazine
JavaScript C# CSS ASP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.nuget Added NuGet.exe so fresh build off checkout will work May 9, 2012
AspNetWebApi
AspNetWebApiTests [NakedBody] Attribute and NakedBodyParameterBinding and tests added Dec 13, 2013
.gitignore GitIgnore updated May 9, 2012
AspNetWebApi.sln Add test project for API test calls. Nov 21, 2013
README.md Small Readme and Configuration File update Nov 14, 2012

README.md

Getting Started with ASP.NET Web API

Sample code for Code Magazine Article

This project is the source code for the above article and provides a small example application that demonstrates some of the core features of the ASP.NET Web API. It contains the code samples referenced in the article above.

Most of the examples are contained in the GetAlbums.htm/js pages with the AlbumApiController.cs and AlbumRpcApiController.cs providing the backend Web API controllers. Additional examples are shown in the SamplesApiController.

Solution Configuration

This project works with the ASP.NET MVC Release using .NET 4.0 runtime.

This is a VS2012 project, but it opens fine and works in VS2010.

Project should run as is after initial compilation in Visual Studio. Note that NuGet packages are not shipped and NuGet Package Restore is enabled so you need to be online (or have NuGet packages cached) in order for the project to pull in all the MVC/WebAPI NuGet references.