Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiagobarradas/restsharp-easy
Complement for RestSharp to create fast and easily API Clients (SDK) with Newtonsoft serialization and Serilog Log
https://github.com/thiagobarradas/restsharp-easy
api-client apiclient dotnet dotnet-core easy log newtonsoft restsharp sdk serilog utility
Last synced: 2 months ago
JSON representation
Complement for RestSharp to create fast and easily API Clients (SDK) with Newtonsoft serialization and Serilog Log
- Host: GitHub
- URL: https://github.com/thiagobarradas/restsharp-easy
- Owner: ThiagoBarradas
- License: mit
- Created: 2020-02-03T21:32:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T13:06:02.000Z (6 months ago)
- Last Synced: 2024-10-29T07:09:16.581Z (3 months ago)
- Topics: api-client, apiclient, dotnet, dotnet-core, easy, log, newtonsoft, restsharp, sdk, serilog, utility
- Language: C#
- Homepage: https://www.nuget.org/packages/RestSharp.Easy/
- Size: 54.7 KB
- Stars: 6
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://barradas.visualstudio.com/Contributions/_apis/build/status/NugetPackage/RestSharp%20Easy?branchName=develop)](https://barradas.visualstudio.com/Contributions/_build/latest?definitionId=15&branchName=master)
[![NuGet Downloads](https://img.shields.io/nuget/dt/RestSharp.Easy.svg)](https://www.nuget.org/packages/RestSharp.Easy/)
[![NuGet Version](https://img.shields.io/nuget/v/RestSharp.Easy.svg)](https://www.nuget.org/packages/RestSharp.Easy/)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ThiagoBarradas_restsharp-easy&metric=alert_status)](https://sonarcloud.io/dashboard?id=ThiagoBarradas_restsharp-easy)# RestSharp Easy
Complement for RestSharp to create fast and easily API Clients (SDK) with Newtonsoft serialization and Serilog Log
## Install via NuGet
````command
PM> Install-Package RestSharp.Easy
````## Sample
> Use it as Scoped or Transient because this client keeps context to use some features like RequestKey, AdditionalLog items, etc.
````csharp
var config = new EasyRestClientConfiguration
{
BaseUrl = "https://server.com/api/v1",
TimeoutInMs = 60000,
SerializeStrategy = SerializeStrategyEnum.SnakeCase,
RequestKey = "123456"
};IEasyRestClient client = new EasyRestClient(config);
var response = client.SendRequestAsync(Method.GET, "users");
````
## How can I contribute?
Please, refer to [CONTRIBUTING](.github/CONTRIBUTING.md)## Found something strange or need a new feature?
Open a new Issue following our issue template [ISSUE TEMPLATE](.github/ISSUE_TEMPLATE.md)## Changelog
See in [nuget version history](https://www.nuget.org/packages/RestSharp.Easy)## Did you like it? Please, make a donate :)
if you liked this project, please make a contribution and help to keep this and other initiatives, send me some Satochis.
BTC Wallet: `1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX`
![1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX](https://i.imgur.com/mN7ueoE.png)