1

I am looking for a framework for communicating to rest services.

The framework must be:

  • .NET 4+ Compatible
  • Mono Compatible
  • Minimizes boilerplate code

As a side note the server actually runs NancyFX and I do have control of the server for getting meta information out about the REST API it exposes.

0

RestSharp matches all the criteria.

Coding is straight forward:

var client = new RestClient("http://example.com");
var request = new RestRequest("resource/{id}", Method.POST);
request.AddParameter("name", "value");
request.AddUrlSegment("id", "123"); 
request.AddHeader("header", "value");

Supports:

  • .NET 3.5+
  • Silverlight 5
  • Windows Phone 8
  • Mono
  • MonoTouch
  • Mono for Android

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.