{"id":16246204,"url":"https://github.com/benruehl/tariff-comparison-exercise","last_synced_at":"2025-04-08T11:43:45.465Z","repository":{"id":99944792,"uuid":"208152021","full_name":"benruehl/tariff-comparison-exercise","owner":"benruehl","description":"An exercise consisting of a .NET Core 2.2 web application which has an API to compare the costs of different tariffs","archived":false,"fork":false,"pushed_at":"2019-09-12T21:49:47.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T07:48:16.603Z","etag":null,"topics":["csharp","dotnet-core"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benruehl.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-12T21:47:54.000Z","updated_at":"2021-09-21T10:30:44.000Z","dependencies_parsed_at":"2023-03-24T18:32:32.651Z","dependency_job_id":null,"html_url":"https://github.com/benruehl/tariff-comparison-exercise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benruehl%2Ftariff-comparison-exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benruehl%2Ftariff-comparison-exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benruehl%2Ftariff-comparison-exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benruehl%2Ftariff-comparison-exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benruehl","download_url":"https://codeload.github.com/benruehl/tariff-comparison-exercise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247838416,"owners_count":21004575,"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","dotnet-core"],"created_at":"2024-10-10T14:29:44.050Z","updated_at":"2025-04-08T11:43:45.438Z","avatar_url":"https://github.com/benruehl.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tariff Comparison Exercise\n\nThis demo project consists of a .NET Core 2.2 web application which has an API to compare the costs of different tariffs.\n\n## Endpoints\n\nIt offers a single endpoint to retrieve two tariffs:\n\n```\nGET {base-url}/api/v1/tariffs/by-annual-consumption/{annual-consumption-in-kWh}\n```\n\nExample:\n\n```\nGET https://localhost:44316/api/v1/tariffs/by-annual-consumption/4500\n```\n\nGiven the annual consumption in kWh the application returns the tariffs for example like so:\n\n```json\n[\n    {\n        \"name\": \"Packaged tariff\",\n        \"annualCosts\": 950.0\n    },\n    {\n        \"name\": \"basic electricity tariff\",\n        \"annualCosts\": 1050.0\n    }\n]\n```\n\nThe tariffs are sorted by costs in ascending order.\n\n## Development\n\nThe application is developed using Visual Studio 2019. Tests are provided using xUnit and Moq.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenruehl%2Ftariff-comparison-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenruehl%2Ftariff-comparison-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenruehl%2Ftariff-comparison-exercise/lists"}