Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1012 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 1012 Bytes

Restclient

This is a simple Library that makes REST Request to any API Rest.

Why RestClient?

This Library uses the HttpClient dotnet class and this library abstracts the usage of HttpClient. So, the usage is simplest.

Compatibility

This Library is compatible with just NET 5.0, but, soon will be availible for dotnet core 3.1 and .NET Framework.

Usage

var client = new RestClient();
var response = await client.GetAsync<THE_CLASS_TO_DESERIALIZE>(YOUR_URL);

How you can see, you can pass some class to deserialize the response.

RestClient was made for async/await usage, but you can use it for synchronous operations easily, for Example:

var client = new RestClient();
var response = client.GetAsync<THE_CLASS_TO_DESERIALIZE>(YOUR_URL).Result;

About the Creator ✒️

Hi I'm David and I'm a IT Engineer and .NET Developer, I'm From Chile and actually I'm working like FullStack Developer ;) I like create code, help another people to build simplest and beauty code.