SujaySarma.Sdk.RestApi
6.0.0
See the version list below for details.
dotnet add package SujaySarma.Sdk.RestApi --version 6.0.0
NuGet\Install-Package SujaySarma.Sdk.RestApi -Version 6.0.0
<PackageReference Include="SujaySarma.Sdk.RestApi" Version="6.0.0" />
paket add SujaySarma.Sdk.RestApi --version 6.0.0
#r "nuget: SujaySarma.Sdk.RestApi, 6.0.0"
// Install SujaySarma.Sdk.RestApi as a Cake Addin #addin nuget:?package=SujaySarma.Sdk.RestApi&version=6.0.0 // Install SujaySarma.Sdk.RestApi as a Cake Tool #tool nuget:?package=SujaySarma.Sdk.RestApi&version=6.0.0
SujaySarma.Sdk.RestApi
Provides a way to interact with REST API services. Uses a shared HttpClient and provides methods to GET, PUT, POST, ... and perform all actions normally done using REST API services. There are also classes for different types of common results returned by the service.
This project has no dependencies on anything that is not a part of the .NET Core SDK/runtime. It does not depend on SujaySarma.Sdk.Core either.
Usage
Adds ability to instantiate the client in a number of ways. Two key changes are:
Set the request timeout value. RestApiClient.
RequestTimeout
property. This is in seconds. You may set different values prior to each call since the property value is attached to the underlying HttpClient on every request.You can now use non-Json request body types (like form-encoded, etc). But, you need to use the
CallApiMethod
method. TheGet()
,Post()
and other methods are simply wrappers on this method anyway. When using theCallApiMethod
method, use its newcontentType
parameter to set the desired content type. This defaults toapplication/json
.
Get latest from https://www.nuget.org/packages/SujaySarma.Sdk.RestApi/6.0.0.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on SujaySarma.Sdk.RestApi:
Package | Downloads |
---|---|
SujaySarma.Sdk.RESTClient.Wikipedia
.NET Client for Wikipedia.org REST API. The client will be updated regularly to support all the operations that the REST endpoints support. If you come across missing features or bugs, do open an issue on Github and it will be addressed quickly. |
|
SujaySarma.Sdk.WikipediaApi
.NET Client for Wikipedia.org REST API. The client will be updated regularly to support all the operations that the REST endpoints support. If you come across missing features or bugs, do open an issue on Github and it will be addressed quickly. |
|
SujaySarma.Sdk.Azure.MarketplaceCatalog
Consume the data powering the Azure Portal's Create Resource workflow as an object model. Please follow the instructions at: https://github.com/sujayvsarma/AzureMarketplaceCatalogProvider/blob/master/README.md for using this library. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Better error handling. For more information, see https://github.com/sujayvsarma/SujaySarma.Sdk.RestApi/ for current information.