Skip to content

Getting Started

Ophir Oren edited this page Mar 13, 2020 · 1 revision

About

REST.NET is a simple REST and HTTP API Client for .NET Core. Why another REST client? When I started developing .NET core I couldn't find a suitable replacement for RestSharp library that suits my needs, so I decided to create one. It's basically a wrapper around HttpClient, which makes API calls much simpler and with fewer lines of code. Since I initially started this project I have used it it many projects, and continued on developing it with many features that make API/HTTP calls easier.

RestClient

The basic work with REST.NET is done with the RestClient object. This object is responsible for all the setup needed, authentication, making http calls and returning your objects serialized and ready for work.

The easiest way to start working with the RestClient is simply initiating a new object of it with the URL of the target API:

RestClient client = new RestClient("https://example.com/");

Clone this wiki locally