{"id":25714362,"url":"https://github.com/bvkeersop/restclientexamples","last_synced_at":"2025-09-10T04:36:06.474Z","repository":{"id":197192559,"uuid":"689297039","full_name":"bvkeersop/RestClientExamples","owner":"bvkeersop","description":"This repository demos different ways to implement REST clients for service-to-service communication.","archived":false,"fork":false,"pushed_at":"2023-09-17T16:53:32.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-09-29T12:39:51.569Z","etag":null,"topics":["nswag","refit","rest","restsharp"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bvkeersop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-09T11:21:31.000Z","updated_at":"2023-09-29T12:39:53.377Z","dependencies_parsed_at":null,"dependency_job_id":"b16dfc48-d041-4344-8ac4-4f2bb0c44e39","html_url":"https://github.com/bvkeersop/RestClientExamples","commit_stats":null,"previous_names":["bvkeersop/restclientexamples"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvkeersop%2FRestClientExamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvkeersop%2FRestClientExamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvkeersop%2FRestClientExamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bvkeersop%2FRestClientExamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bvkeersop","download_url":"https://codeload.github.com/bvkeersop/RestClientExamples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240672824,"owners_count":19838930,"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":["nswag","refit","rest","restsharp"],"created_at":"2025-02-25T12:53:15.746Z","updated_at":"2025-02-25T12:53:16.172Z","avatar_url":"https://github.com/bvkeersop.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RestClientExamples\n\nThis repository demos different ways to implement REST clients for service-to-service communication.\nSee my blog post for detailed information.\n\nThe following implementations are demoed:\n1. Creating a REST client using `Flurl`.\n2. `Manually` creating a REST client.\n3. Generating a REST client using `NSwag`.\n4. Creating a REST client using `Refit`.\n5. Creating a REST client using `RestEase`.\n6. Creating a rest client using `RestSharp`.\n\nYou can open the solution in visual studio and run it, this will do the following:\n\n1. Start the `RestClientExamples.ExampleApi`.\n2. Start the `RestClientExamples.Cli`.\n    - The `Cli` will prompt you to select an option:\n        1. Demo making HTTP calls to the `ExampleApi` using the different types of clients.\n        2. Execute a performance test using the different types of clients.\n\nInside the `RestClientExamples` solution you will find the following:\n\n## RestClientExamples.Cli\n\nContains a simple command line demo on how to use the clients.\n\n## RestClientExamples.ExampleApi\n\nContains an ExampleApi with the default WeatherForecastController.\n\n## RestClientExamples.ExampleApi.Models\n\nContains the Models used by the `ExampleApi`.\n\n## RestClientExamples.Flurl\n\nShows how you can use [Flurl](https://github.com/tmenier/Flurl) to make HTTP requests.\n\n## RestClientExamples.Manual\n\nShows how you can manually create a REST client using [typed clients](https://learn.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests#how-to-use-typed-clients-with-ihttpclientfactory).\n\n## RestClientExamples.NSwag\n\nShows how you can leverage [NSwag](https://github.com/RicoSuter/NSwag) to automatically generate REST clients based on an openapi specification.\n\n## RestClientExamples.Refit\n\nShows how you can leverage [Refit](https://github.com/reactiveui/refit) to generate a REST client using an interface.\n\n## RestClientExamples.RestEase\n\nShows how you can use [RestEase](https://github.com/canton7/RestEase) to generate a REST client using an interface.\n\n## RestClientExamples.RestSharp\n\nShows how you can use [RestSharp](https://github.com/restsharp/RestSharp) to make HTTP requests.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvkeersop%2Frestclientexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbvkeersop%2Frestclientexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbvkeersop%2Frestclientexamples/lists"}