Skip to content

api-evangelist/restsharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestSharp

RestSharp is a simple REST and HTTP API client library for .NET that wraps HttpClient with a fluent API for making HTTP requests with automatic serialization and deserialization of request and response bodies. Used by developers building .NET applications that consume REST APIs. Apache-2.0 licensed, .NET Foundation project with 9,800+ GitHub stars.

Website: https://restsharp.dev/ GitHub: https://github.com/restsharp/RestSharp NuGet: https://www.nuget.org/packages/RestSharp Current Version: 114.0.0 (released March 2026)

Library

RestSharp .NET Client Library

A fluent .NET HTTP client library supporting JSON, XML, and CSV serialization, OAuth1/OAuth2/JWT/Basic authentication, async operations, multipart file uploads, and comprehensive parameter management.

Common Properties

Type URL
Website https://restsharp.dev/
Documentation https://restsharp.dev/docs/intro/
GitHub Organization https://github.com/restsharp
NuGet Package https://www.nuget.org/packages/RestSharp
License Apache-2.0
Issue Tracker https://github.com/restsharp/RestSharp/issues

Artifacts

JSON Schemas

File Description
json-schema/restsharp-rest-client-options-schema.json RestClientOptions configuration schema
json-schema/restsharp-rest-request-schema.json RestRequest object schema

JSON Structures

File Description
json-structure/restsharp-rest-client-options-structure.json RestClientOptions field reference
json-structure/restsharp-rest-request-structure.json RestRequest field reference

JSON-LD Context

File Description
json-ld/restsharp-context.jsonld JSON-LD context for RestSharp library vocabulary

Examples

File Description
examples/restsharp-get-request-example.json Simple typed GET request
examples/restsharp-post-json-example.json POST JSON body with typed response
examples/restsharp-bearer-auth-example.json Bearer token authentication setup

Vocabulary

File Description
vocabulary/restsharp-vocabulary.yml Domain vocabulary for RestSharp classes, methods, and concepts

Quick Start

dotnet add package RestSharp
var options = new RestClientOptions("https://api.example.com");
var client = new RestClient(options);
var request = new RestRequest("/users/{id}");
request.AddUrlSegment("id", 42);
var user = await client.GetAsync<User>(request);

Maintainers

About

RestSharp is a simple REST and HTTP API client library for .NET that wraps HttpClient with a fluent API for making HTTP requests with automatic serialization and deserialization of request and response bodies. Supports JSON, XML, and CSV formats, OAuth1/OAuth2 authentication, async operations, and multi-part form uploads.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors