KamiSama.Extensions.RestSharp 10.0.11.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package KamiSama.Extensions.RestSharp --version 10.0.11.1
                    
NuGet\Install-Package KamiSama.Extensions.RestSharp -Version 10.0.11.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KamiSama.Extensions.RestSharp" Version="10.0.11.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KamiSama.Extensions.RestSharp" Version="10.0.11.1" />
                    
Directory.Packages.props
<PackageReference Include="KamiSama.Extensions.RestSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KamiSama.Extensions.RestSharp --version 10.0.11.1
                    
#r "nuget: KamiSama.Extensions.RestSharp, 10.0.11.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package KamiSama.Extensions.RestSharp@10.0.11.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KamiSama.Extensions.RestSharp&version=10.0.11.1
                    
Install as a Cake Addin
#tool nuget:?package=KamiSama.Extensions.RestSharp&version=10.0.11.1
                    
Install as a Cake Tool

KamiSama.Extensions.RestSharp

Back to package index

Version: 10.0.0

Description

Fluent RestSharp request construction and dependency injection registration for HTTP integrations. Build GET, POST, PUT, and DELETE requests with parameters, headers, URL segments, files, or JSON bodies, then deserialize successful responses.

How to use

dotnet add package KamiSama.Extensions.RestSharp --version 10.0.0

Register an HttpClient before adding the RestSharp services. Inject IRestBuilder, start each request with ForServiceUrl, add request data, and then call the required HTTP verb:

using KamiSama.Extensions.RestSharp;

services.AddHttpClient();
services.AddKamiSamaRestSharp();

ProductDto product = await restBuilder
    .ForServiceUrl("https://api.example.com", "products/{id}")
    .AddUrlSegment("id", 42)
    .GetAsync<ProductDto>(cancellationToken);

IRestBuilder is scoped and stores the current request. Call ForServiceUrl before configuring every request, and do not share one builder across concurrent operations.

Namespaces

Types

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on KamiSama.Extensions.RestSharp:

Package Downloads
KamiSama.ExternalServices.Email.Smtp

SMTP transport registration and configuration for KamiSama email services. The current implementation contains a known inverted validation defect that rejects complete SMTP settings; see package documentation before use.

KamiSama.ExternalServices.Sms.NeoZarin

Scoped NeoZarin HTTP SMS provider registration and configuration for KamiSama SMS services. Requires KamiSama RestSharp and HttpClient registration and currently has an inverted validation defect.

KamiSama.ExternalServices.Sms.Kavenegar

Scoped Kavenegar SMS provider registration and configuration for KamiSama SMS services. The current sender has an inverted validation defect that rejects a configured API key before sending.

Polareum.Api

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.11.9 130 8/24/2026
10.0.11.8 133 8/21/2026
10.0.11.7 125 8/21/2026
10.0.11.6 221 8/19/2026
10.0.11.5 117 8/18/2026
10.0.11.4 127 8/18/2026
10.0.11.3 120 8/18/2026
10.0.11.2 119 8/18/2026
10.0.11.1 142 8/15/2026
10.0.11 119 8/11/2026
10.0.10.2 125 8/4/2026
10.0.0 100 8/18/2026