TypedRest helps you build type-safe, fluent-style REST API clients.

Common REST patterns such as collections are represented as classes, allowing you to write more idiomatic code. For example, TypedRest lets you turn this:

var httpClient = new HttpClient {BaseAddress = new Uri("http://example.com/")};
var response = httpClient.GetAsync("/contacts/123");
var contact = await response.Content.ReadAsAsync<ContactDto>();

into this:

var myService = new MyServiceClient(new Uri("http://example.com/"));
var contact = myService.Contacts["123"].ReadAsync();

Read the Introduction to TypedRest or jump right in with the Getting started guide.