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: about 1 month 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T13:06:02.000Z (10 months ago)
- Last Synced: 2025-03-23T20:05:53.725Z (about 2 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: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://barradas.visualstudio.com/Contributions/_build/latest?definitionId=15&branchName=master)
[](https://www.nuget.org/packages/RestSharp.Easy/)
[](https://www.nuget.org/packages/RestSharp.Easy/)
[](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`
