Greetings, dear visitor. IT blog is here

Another RestAPI accessor for .Net C#

Some time has passed after I have launched the open-source library to access Google Storage Rest Api. By that time there was a problem accessing the REST service of google. The solution I have found was a great library named RestSharp. On the first glance it came, that library is very handy and lightweight. For sure, developers of it are great people and professionals. But, when it came to customize the RestClient for GS api needs, it found out that it is very hard and not intuitive to extend the flexibility of this library.

That's why I have developed some small and light solution for simple RestApi requests. Have named it Rest4Net.

The body

The most of the functionality you need to do, is to inherit your class from Rest4Net.Connector.

And that's almost all. You need to implement constructor and methods, your client class will return.

If response from the server is Xml or Json, this library can parse response into object (like deserialisation). If you need some array field, mark it as IList<> please.

For example, I have made an implementation of service client here.

How to use the service demo application is here.

Hope, this library will help someone. ;)

blog comments powered by Disqus