Language

How to create client applications that call your web API.

  1. Sample: Introduction to HttpClient

    This sample demonstrates HttpClient, a modern HTTP client for .NET. HttpClient provides a flexible and extensible API for accessing all things exposed through HTTP.

  2. Calling a Web API From a .NET Client

    By Mike Wasson|

    This tutorial shows how to use HttpClient in a C# console application, to make HTTP calls to a web API.

  3. Calling a Web API From a WPF Application

    By Mike Wasson|

    This tutorial builds on the previous, by showing how to handle asynchronous methods in HttpClient, without blocking the client UI.

  4. HttpClient Message Handlers

    By Mike Wasson|

    Shows how to add custom HTTP message handlers to the HttpClient pipeline.

Web API Books

Microsoft's Jon Galloway recommends these books for learning ASP.NET MVC:

Pro ASP.NET Web API

Pro ASP.NET Web API

by Tugberk Ugurlu, Alexander Zeitler

Designing Evolvable Web APIs with ASP.NET

Designing Evolvable Web APIs with ASP.NET

by Glenn Block, Pablo Cibraro, Pedro Felix, Howard Dierking, Darrel Miller

ASP.NET MVC 4 and the Web API: Building a REST Service from Start to Finish

ASP.NET MVC 4 and the Web API: Building a REST Service from Start to Finish

by Jamie Kurtz