{"id":17109193,"url":"https://github.com/dkackman/dynamicrestproxy","last_synced_at":"2025-07-11T15:37:12.468Z","repository":{"id":15715152,"uuid":"18453200","full_name":"dkackman/DynamicRestProxy","owner":"dkackman","description":"A Dynamic Language Runtime (DLR) http proxy","archived":false,"fork":false,"pushed_at":"2022-12-08T14:48:17.000Z","size":45727,"stargazers_count":37,"open_issues_count":5,"forks_count":15,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-06T21:56:03.783Z","etag":null,"topics":["c-sharp","dynamic","rest-client"],"latest_commit_sha":null,"homepage":"https://dkackman.github.io/DynamicRestProxy","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/dkackman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-04T21:25:07.000Z","updated_at":"2024-11-04T05:18:51.000Z","dependencies_parsed_at":"2023-01-11T20:23:49.953Z","dependency_job_id":null,"html_url":"https://github.com/dkackman/DynamicRestProxy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dkackman/DynamicRestProxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkackman%2FDynamicRestProxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkackman%2FDynamicRestProxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkackman%2FDynamicRestProxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkackman%2FDynamicRestProxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkackman","download_url":"https://codeload.github.com/dkackman/DynamicRestProxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkackman%2FDynamicRestProxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264841967,"owners_count":23671907,"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":["c-sharp","dynamic","rest-client"],"created_at":"2024-10-14T16:22:25.626Z","updated_at":"2025-07-11T15:37:12.431Z","avatar_url":"https://github.com/dkackman.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Dynamic Rest\n================\n[![NuGet](https://img.shields.io/nuget/dt/DynamicRestClient)](https://www.nuget.org/packages/DynamicRestClient/)\n\n- [Documentation](https://dkackman.github.io/DynamicRestProxy)\n\nA conventions based rest client using the .NET [Dynamic Language Runtime](http://msdn.microsoft.com/en-us/library/dd233052(v=vs.110).aspx). \n\nThe [documentation](https://dkackman.github.io/DynamicRestProxy/) has further detail and examples, as does [this article](http://www.codeproject.com/Articles/762189/A-Dynamic-Rest-Client-Proxy-with-the-DLR) on codeproject.\n\nThis is a set of classes that wrap a concrete implementation of http client communication with a [DynamicObject](http://msdn.microsoft.com/en-us/library/system.dynamic.dynamicobject(v=vs.110).aspx). The wrapper translates dynamic method invocations and endpoint paths into REST requests. \n\nAll requests are asynynchronous and return Task objects.\n\nThe intent is to make it easier to access REST API's from C# without needing to create strongly typed API wrappers and numerous static POCO types for basic DTO responses. \n\nSo a GET statement can be as simple as:\n\n    dynamic google = new DynamicRestClient(\"https://www.googleapis.com/\");\n    dynamic bucket = await google.storage.v1.b(\"uspto-pair\").get();\n    Console.WriteLine(bucket.location);\n\nOr if you insist on static DTO types, a type argument can be supplied (deserialization uses [Json.Net](http://json.codeplex.com/) so all its rules and patterns apply):\n\n    dynamic google = new DynamicRestClient(\"https://www.googleapis.com/\");\n    Bucket bucket = await google.storage.v1.b(\"uspto-pair\").get(typeof(Bucket));\n    Console.WriteLine(bucket.location);\n\nSupports the GET, POST, PUT, PATCH and DELETE verbs.\n\nTested on dotnetcore on Linux.\n\nIf you try to run the unit tests take a close look at the CredentialStore class in the unit test project. It's pretty straighforward and you can use it to supply your own api keys while keeping them out of the code.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkackman%2Fdynamicrestproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkackman%2Fdynamicrestproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkackman%2Fdynamicrestproxy/lists"}