Skip to content

Guzik1/RestApiClient_for_.Net

Repository files navigation

GRestApiClient for C#/.Net

This project is a simple to use Rest api in c#.

General info

Features:

  • request method: GET, POST, PUT, DELETE
  • supports query
  • supports headers
  • Check succes status code response
  • Generic desiaralization response message.

Setup

Nuget package.
Compiling bin library is located in /bin folder.
Copy files (.dll files) to your project.

Simple code example

string url = @"testurl.com/api";

RestClient client = new RestClient(url);

client.SendGET();    // send get request

ResponseObject response;
if (client.ResponseHasNoErrors())
  response = client.GetResponse<ResponseObject>();

For view examples click here.
Documentatio available here.

Built with

  • .Net Core 3.1
  • NUnit Framework (for testing)
  • Newtonsoft.Json (JSON deserializing, MIT license)

Status

Version: 1.0.0

License

MIT License © Sebastian Guzik.

About

Rest client manager library for C#/.Net

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages