{"id":27223522,"url":"https://github.com/logikoz/log.restsharp.dependencies","last_synced_at":"2025-04-10T09:08:25.028Z","repository":{"id":116539919,"uuid":"246990253","full_name":"Logikoz/Log.RestSharp.Dependencies","owner":"Logikoz","description":"Base codes for personal projects.","archived":false,"fork":false,"pushed_at":"2021-12-06T02:39:45.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T21:03:25.670Z","etag":null,"topics":["dotnet-standard","rest","unit-testing"],"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/Logikoz.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-13T04:47:59.000Z","updated_at":"2021-12-06T02:34:40.000Z","dependencies_parsed_at":"2024-06-21T20:23:13.479Z","dependency_job_id":null,"html_url":"https://github.com/Logikoz/Log.RestSharp.Dependencies","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Logikoz%2FLog.RestSharp.Dependencies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Logikoz%2FLog.RestSharp.Dependencies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Logikoz%2FLog.RestSharp.Dependencies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Logikoz%2FLog.RestSharp.Dependencies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Logikoz","download_url":"https://codeload.github.com/Logikoz/Log.RestSharp.Dependencies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248190515,"owners_count":21062284,"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":["dotnet-standard","rest","unit-testing"],"created_at":"2025-04-10T09:08:24.378Z","updated_at":"2025-04-10T09:08:25.015Z","avatar_url":"https://github.com/Logikoz.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple implementation for RestSharp lib\nBase REST request service for personal projects, writen with .net standard 2.1\n\nGET samples:\n```csharp\nvar response = await new RequestService()\n{\n  Method = Method.GET,\n  URL = \"https://logikoz.net\",\n  URN = \"Tests\"\n}.ExecuteTaskAsync();\n```\n\nWith jwt authorization header:\n```csharp\nvar response = await new RequestService()\n{\n  Method = Method.GET,\n  URL = \"https://logikoz.net\",\n  URN = \"Tests\",\n  Authenticator = new JwtAuthenticator(\"123\") // result: Bearer 123\n}.ExecuteTaskAsync();\n```\n\nWith parameters:\n```csharp\nvar request = new RequestService()\n{\n  Method = Method.GET,\n  URL = \"https://logikoz.net\",\n  URN = \"Tests\",\n};\n\nrequest.Parameters.Add(\"param1\", \"123\");\nrequest.Parameters.Add(\"param2\", \"123\");\nrequest.Parameters.Add(\"param3\", \"123\");\n\nIRestResponse response = await request.ExecuteTaskAsync();\n```\n\nPOST samples:\n```csharp\nvar response = await new RequestService()\n{\n  Method = Method.POST,\n  URL = \"https://logikoz.net\",\n  URN = \"Tests/add\",\n  Body = obj // C# object, no need to serialize.\n}.ExecuteTaskAsync();\n```\n\nFor PUT, Delete, Options... methods, follow the same principle as the examples cited above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogikoz%2Flog.restsharp.dependencies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogikoz%2Flog.restsharp.dependencies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogikoz%2Flog.restsharp.dependencies/lists"}