{"id":19915670,"url":"https://github.com/oguzal/lordoftheringsapi","last_synced_at":"2026-06-09T06:04:48.352Z","repository":{"id":204372426,"uuid":"711690955","full_name":"oguzal/LordOfTheRingsApi","owner":"oguzal","description":"A C# client for the Lord of the Rings API","archived":false,"fork":false,"pushed_at":"2024-11-24T22:48:40.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T23:23:26.650Z","etag":null,"topics":["csharp","lotr","restsharp"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oguzal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-30T01:17:55.000Z","updated_at":"2024-11-24T22:48:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"a51aa5de-fcee-43a4-b17a-94aecd1b4e22","html_url":"https://github.com/oguzal/LordOfTheRingsApi","commit_stats":null,"previous_names":["oguzal/lordoftheringsapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oguzal%2FLordOfTheRingsApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oguzal%2FLordOfTheRingsApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oguzal%2FLordOfTheRingsApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oguzal%2FLordOfTheRingsApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oguzal","download_url":"https://codeload.github.com/oguzal/LordOfTheRingsApi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241343530,"owners_count":19947403,"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":["csharp","lotr","restsharp"],"created_at":"2024-11-12T21:41:46.904Z","updated_at":"2025-11-25T07:01:01.525Z","avatar_url":"https://github.com/oguzal.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lord of the Rings C# SDK Using RestSharp Library\n\nThis C# SDK  allows to consume Lord of the Rings API endpoints easily, which are  available on https://the-one-api.dev/documentation. The current implementation supports retrieving of Movie and Quote\nobjects as collection or  individually,  the results are converted to type safe C# models listed under Model folder. \nSome form of filtering is also supported as described below. \n In this version the below endpoints are implemented:\n\n| Endpoint | Description| Corresponding SDK Method| \n-----------|------------|-------------------------|\n|/quote         | List of all movie quotes  | `public async Task\u003cList\u003cMovieQuote\u003e\u003e GetQuotes(List\u003cFilter\u003e filters) `|                         |\n|/quote/{id}    | Request one specific movie quote | `public async Task\u003cMovieQuote\u003e GetQuote(string Id)`        |        \n|/movie         | List of all movies, including the \"The Lord of the Rings\" and the \"The Hobbit\" trilogies |  ` public async Task\u003cList\u003cQuote\u003e\u003e GetQuotesByMovieId(string Id, List\u003cFilter\u003e filters, int? page = null, int? offset = null, int? limit = null) `|\n|/movie/{id}    | Request one specific movie | `public async Task\u003cMovie\u003e GetMovie(string Id)`              | \n|/movie/{id}/quote | Request all movie quotes for one specific movie (only working for the LotR trilogy) |  ` public async Task\u003cList\u003cQuote\u003e\u003e GetQuotes(List\u003cFilter\u003e filters, int? page=null, int? offset=null, int? limit = null)  ` |\n\nThe SDK targets .Net Standard 2.0 which supports below .Net implementations:\n\n| .NET implementation |\tVersion support|\n|----------------------|--------------------|\n|.NET and .NET Core |\t2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0|\n|.NET Framework    |\t4.6.1 2, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1|\n https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0\n\nFor the endpoints that takes \u003ccode\u003e`List\u003cFilter\u003e`\u003c/code\u003e as parameter, you can create the filters as below:\n\u003ccode\u003e\n  public async Task GetMoviesShorterThan200MinsAnd95PlusRottenTomatoesTest()\n  {\n      var filters = new List`\u003cFilter\u003e`();\n      filters.Add(new Filter(\"200\", Filter.Operator.LessThan, \"runtimeInMinutes\"));\n      filters.Add(new Filter(\"92\", Filter.Operator.GreaterThan, \"rottenTomatoesScore\"));\n      var movies = await sdk.GetMovies(filters);\n      ..\n  }\n  \u003c/code\u003e\n\n  The SDK is created using Visual Studio 2022. The solution file is  LotrSDK/LotrSDK.sln which opens both the SDK project(a class library named as \"LotrSDK\") and Integration Test Project(\"LotrSDKTests\").\n\n## Instructions:\n\n1. Create an account on  https://the-one-api.dev/sign-up \n2. Clone this repo in your pc\n3. Open the solution file (Preferably with Visual Studio) \n4. Add your bearer token on  line 81 in the .runsettings file under LotrSDKTests project\n5. Run Unit tests\n\n## TODO LIST: \n1. Only 5 endpoints are covered so far\n2. More Tests need to be added\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foguzal%2Flordoftheringsapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foguzal%2Flordoftheringsapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foguzal%2Flordoftheringsapi/lists"}