This project is a simple to use Rest api in c#.
- request method: GET, POST, PUT, DELETE
- supports query
- supports headers
- Check succes status code response
- Generic desiaralization response message.
Nuget package.
Compiling bin library is located in /bin folder.
Copy files (.dll files) to your project.
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.
- .Net Core 3.1
- NUnit Framework (for testing)
- Newtonsoft.Json (JSON deserializing, MIT license)
Version: 1.0.0