{"id":20238787,"url":"https://github.com/openpotato/openholidaysapi","last_synced_at":"2025-04-10T19:35:51.460Z","repository":{"id":65577689,"uuid":"509518228","full_name":"openpotato/openholidaysapi","owner":"openpotato","description":"Web service for the OpenHolidays API project","archived":false,"fork":false,"pushed_at":"2025-04-05T08:09:37.000Z","size":244,"stargazers_count":16,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-04-05T09:20:07.945Z","etag":null,"topics":["open-data","openholidaysapi"],"latest_commit_sha":null,"homepage":"https://openholidaysapi.org/swagger/index.html","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openpotato.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":"2022-07-01T16:15:38.000Z","updated_at":"2025-04-05T08:09:40.000Z","dependencies_parsed_at":"2023-02-12T18:00:51.284Z","dependency_job_id":"0a931f75-6bd1-4159-b9fd-648890b42950","html_url":"https://github.com/openpotato/openholidaysapi","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpotato%2Fopenholidaysapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpotato%2Fopenholidaysapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpotato%2Fopenholidaysapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openpotato%2Fopenholidaysapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openpotato","download_url":"https://codeload.github.com/openpotato/openholidaysapi/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281416,"owners_count":21077423,"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":["open-data","openholidaysapi"],"created_at":"2024-11-14T08:35:40.549Z","updated_at":"2025-04-10T19:35:51.452Z","avatar_url":"https://github.com/openpotato.png","language":"C#","funding_links":[],"categories":["European Utilities"],"sub_categories":[],"readme":"![GitHub](https://img.shields.io/github/license/openpotato/openholidaysapi)\n\n# OpenHolidays API\n\nThe service behind the OpenHolidays API. Build with [.NET 9](https://dotnet.microsoft.com/).\n\n## Technology stack\n\n+ [PostgreSQL 17](https://www.postgresql.org/) as database\n+ [ASP.NET 9](https://dotnet.microsoft.com/apps/aspnet) as web framework\n+ [Entity Framework Core 9](https://docs.microsoft.com/ef/) as ORM layer\n+ [Swagger UI](https://swagger.io/tools/swagger-ui/) for OpenAPI based documentation\n\n## Getting started \n\nThe following instructions show you how to set up a development environment on your computer.\n\n### Prerequisites\n\n+ Set up a local PosgreSQL 17 (or higher) instance.\n+ Clone or download the repository [OpenHolidaysApi.Data](https://github.com/openpotato/openholidaysapi.data).\n+ Clone or download this repository.\n+ Open the solution file `OpenHolidaysApi.sln` in Visual Studio 2022.\n\n### Configure the OpenHolidaysApi CLI\n\n+ Switch to the project `OpenHolidaysApi.CLI`.\n+ Make a copy of the the `appsettings.json` file and name it `appsettings.Development.json`.\n+ Exchange the content with the following JSON document and adjust the values to your needs. This configures the root folder for the csv data sources (the `src` folder in your local [OpenHolidaysApi.Data](https://github.com/openpotato/openholidaysapi.data) repository) and the database connection.\n  \n  ``` json\n  \"Sources\": {\n    \"RootFolderName\": \"c:\\\\openholidaysapi.data\\\\src\"\n  },\n  \"Database\": {\n    \"Server\": \"localhost\",\n    \"Database\": \"OpenHolidaysApi\",\n    \"Username\": \"postgres\",\n    \"Password\": \"qwertz\"\n  }\n  ```\n\n### Create and populate the database\n\n+ Build the `OpenHolidaysApi.CLI` project. \n+ Run the `OpenHolidaysApi.CLI` project with parameter `initdb --import`. This will create and populate the PostgreSQL database.\n\n### Configure the OpenHolidaysApi WebService\n\n+ Switch to the  `OpenHolidaysApi.WebService`. \n+ Make a copy of the the `appsettings.json` file and name it `appsettings.Development.json`.\n+ Exchange the content with the following JSON document and adjust the values to your needs. This configures the database connection.\n\n  ``` json\n  \"Database\": {\n    \"Server\": \"localhost\",\n    \"Database\": \"OpenHolidaysApi\",\n    \"Username\": \"postgres\",\n    \"Password\": \"qwertz\"\n  }\n  ```\n\n### Build and test the API\n\n+ Build the `OpenHolidaysApi.WebService` project.\n+ Run the `OpenHolidaysApi.WebService` project and play with the Swagger UI.\n\n## Can I help?\n\nYes, that would be much appreciated. The best way to help is to post a response via the Issue Tracker and/or submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenpotato%2Fopenholidaysapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenpotato%2Fopenholidaysapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenpotato%2Fopenholidaysapi/lists"}