Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 725 Bytes

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("")};
var response = httpClient.GetAsync("/contacts/123");
var contact = await response.Content.ReadAsAsync<ContactDto>();

into this:

var myService = new MyServiceClient(new Uri(""));
var contact = myService.Contacts["123"].ReadAsync();

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

You can’t perform that action at this time.