{"id":13429534,"url":"https://github.com/restsharp/RestSharp","last_synced_at":"2025-03-16T03:31:45.597Z","repository":{"id":726191,"uuid":"374228","full_name":"restsharp/RestSharp","owner":"restsharp","description":"Simple REST and HTTP API Client for .NET","archived":false,"fork":false,"pushed_at":"2024-10-04T11:48:53.000Z","size":41542,"stargazers_count":9604,"open_issues_count":41,"forks_count":2342,"subscribers_count":424,"default_branch":"dev","last_synced_at":"2024-10-29T11:27:00.786Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://restsharp.dev","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/restsharp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"restsharp"}},"created_at":"2009-11-16T02:01:45.000Z","updated_at":"2024-10-28T15:18:37.000Z","dependencies_parsed_at":"2024-03-17T05:42:38.234Z","dependency_job_id":"55a5ccee-1bff-423d-a0f2-f71b70700fe4","html_url":"https://github.com/restsharp/RestSharp","commit_stats":{"total_commits":1759,"total_committers":336,"mean_commits":"5.2351190476190474","dds":0.7066515065378056,"last_synced_commit":"0fba5e727d241b1867bd71efc912594075c2934b"},"previous_names":[],"tags_count":80,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restsharp%2FRestSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restsharp%2FRestSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restsharp%2FRestSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/restsharp%2FRestSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/restsharp","download_url":"https://codeload.github.com/restsharp/RestSharp/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242927234,"owners_count":20207927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T02:00:41.396Z","updated_at":"2025-03-16T03:31:45.574Z","avatar_url":"https://github.com/restsharp.png","language":"C#","readme":"# RestSharp - Simple .NET REST Client \n\n![](https://img.shields.io/nuget/dt/RestSharp) [![](https://img.shields.io/nuget/v/RestSharp)](https://www.nuget.org/packages/RestSharp) [![](https://img.shields.io/nuget/vpre/RestSharp)](https://www.nuget.org/packages/RestSharp#versions-body-tab)\n\nRestSharp is a lightweight HTTP API client library. It's a wrapper around `HttpClient`, not a full-fledged client on \nits own.\n\nWhat RestSharp adds to `HttpClient`:\n- Default parameters of any kind, not just headers\n- Add a parameter of any kind to requests, like query, URL segment, header, cookie, or body\n- Multiple ways to add a request body, including JSON, XML, URL-encoded form data, multipart form data with and \n  without files\n- Built-in serialization and deserilization of JSON, XML, and CSV, as well as the ability to add custom serializers\n- Rich support for authentication\n\n## Compatibility note\n\nRestSharp 107 was a major release that brings a lot of changes. We've removed a lot of legacy code and added new \nfeatures. Finally, RestSharp has moved to `HttpClient`. We also deprecated the following:\n- SimpleJson in favour of `System.Text.Json.JsonSerialzer`\n- `IRestRequest`, and `IRestResponse` in favour of implementing classes\n- Everything `Http` and `IHttp` as those are just wrappers\n- Client configuration moved to `RestClientOptions` to make the client thread-safe\n- `IRestClient` interface surface substantially reduced\n\nMost of the client and some of the request options are now in `RestClientOptions`.\n\nCheck [v107+ docs](https://restsharp.dev/v107) for more information.\n\n## Packages\n\n| Package                                | What it's for                                                                        |\n|----------------------------------------|--------------------------------------------------------------------------------------|\n| `RestSharp`                            | The core library, including `System.Text.Json` serializer and basical XML serializer |\n| `RestSharp.Serializers.NewtonsoftJson` | Use `Newtonsoft.Json` as a JSON serializer                                           |\n| `RestSharp.Serializers.Xml`            | Use custom RestSharp XML serializer for XML                                          |\n| `RestSharp.Serializers.CsvHelper`      | Use `CsvHelper` as a CSV serializer                                                  |\n\n## Code of Conduct\n\nThis project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.\nFor more information see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).\n\n**Users violated the aforementioned code of conduct will be blocked.**\n\n## Support\n\nRestSharp is an open-source project with a single maintainer. Do not expect your issue to be resolved unless it concerns a large group of RestSharp users.\nThe best way to resolve your issue is to fix it yourself. Fork the repository and submit a pull request.\nYou can also motivate the maintainer by sponsoring this project.\n\n### Contribute\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on the process for reporting issues and submitting pull requests.\n\n### Get help\n\nRead the docs: [Official Site][1]\n\nAsk a question on StackOverflow with the tag `restsharp`.\n \nJoin RestSharp Discord server: [![Discord](https://img.shields.io/discord/1224723555053207612?label=Discord)](https://discord.gg/NdpzHZ2qep)\n\nFind RestSharp on Twitter: [@RestSharp][2]\n\n## Community\n\n### .NET Foundation\n\nThis project is a part of the [.NET Foundation](https://dotnetfoundation.org).\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute.\n[\u003cimg src=\"https://opencollective.com/RestSharp/contributors.svg?width=890\u0026button=false\"\u003e](https://github.com/restsharp/RestSharp/graphs/contributors)\n\n### Financial Contributors\n\nBecome a financial contributor and help us sustain our community. [Contribute](https://github.com/sponsors/restsharp)\n\n## License\n\n[Apache License 2.0](https://github.com/restsharp/RestSharp/blob/dev/LICENSE.txt)\n\n  [1]: https://restsharp.dev\n  [2]: https://twitter.com/RestSharp\n  [3]: https://github.com/restsharp/RestSharp/issues\n","funding_links":["https://github.com/sponsors/restsharp"],"categories":["Frameworks, Libraries and Tools","C\\#","C# #","C#","others","Clients","Libraries","Network","HTTP","框架, 库和工具","API","🗒️ Cheatsheets","EF Core Providers Connectors"],"sub_categories":["API",".NET Clients","Http Client / REST","GUI - other","📦 Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestsharp%2FRestSharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frestsharp%2FRestSharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frestsharp%2FRestSharp/lists"}