{"id":19190213,"url":"https://github.com/macktireh/dotnetweatherapi","last_synced_at":"2026-04-15T16:32:23.394Z","repository":{"id":221598562,"uuid":"754848609","full_name":"Macktireh/DotnetWeatherApi","owner":"Macktireh","description":"WeatherApi is an ASP.NET Core 8 project that provides easy access to weather information using an external API. It offers straightforward endpoints for location search and retrieving weather forecasts, all configurable through environment variables.","archived":false,"fork":false,"pushed_at":"2024-02-14T20:01:43.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T03:46:40.505Z","etag":null,"topics":["api","csharp","dotnet","dotnet-8","weather"],"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/Macktireh.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}},"created_at":"2024-02-08T21:56:22.000Z","updated_at":"2024-02-14T14:15:09.000Z","dependencies_parsed_at":"2024-02-14T21:24:35.361Z","dependency_job_id":null,"html_url":"https://github.com/Macktireh/DotnetWeatherApi","commit_stats":null,"previous_names":["macktireh/dotnetweatherapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Macktireh/DotnetWeatherApi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Macktireh%2FDotnetWeatherApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Macktireh%2FDotnetWeatherApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Macktireh%2FDotnetWeatherApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Macktireh%2FDotnetWeatherApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Macktireh","download_url":"https://codeload.github.com/Macktireh/DotnetWeatherApi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Macktireh%2FDotnetWeatherApi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31849740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","csharp","dotnet","dotnet-8","weather"],"created_at":"2024-11-09T11:33:20.417Z","updated_at":"2026-04-15T16:32:23.377Z","avatar_url":"https://github.com/Macktireh.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather Forecasting API\n\nBienvenue dans WeatherApi, un projet ASP.NET Core 8 permettant d'interagir avec une API météo tierce.\n\n## Configuration (sans Docker)\n\n1. Cloner et variables d'environnement\n\n    ```plaintext\n    git clone https://github.com/Macktireh/DotnetWeatherApi.git\n    ```\n    \n    ```plaintext\n    cd DotnetWeatherApi\n    ```\n\n    Copiez le fichier `.env.example` en tant que `.env` et renseignez les valeurs appropriées pour les clés API météo.\n\n    ```plaintext\n    WEATHER_API_URL=\n    WEATHER_API_KEY=\n    ```\n\n2. Assurez-vous que les variables d'environnement `WEATHER_API_URL` et `WEATHER_API_KEY` sont définies.\n\n### sans Docker\n\n3. Installez les dépendances nécessaires avec la commande :\n\n    ```bash\n    dotnet restore\n    ```\n\n4. Lancez l'application avec la commande :\n\n    ```bash\n    dotnet run\n    ```\n\n### avec Docker\n\n5. Construisez et lancez l'application avec Docker en utilisant la commande :\n\n    docker compose\n\n    ```bash\n    docker-compose up --build\n    ```\n\n    docker only\n\n    ```bash\n    docker run --name weatherapi -p 8080:8080 -p 8081:8081 -e WEATHER_API_URL=YOUR_WEATHER_API_URL -e WEATHER_API_KEY=YOUR_WEATHER_API_KEY macktireh/weatherapi:1.0 \n    ```\n\n    ou\n\n    ```bash\n    docker run --name weatherapi -p 8080:8080 -p 8081:8081 --env-file .env macktireh/weatherapi:1.0 \n    ```\n\n6. Accédez à Swagger pour explorer les endpoints de l'API :\n\n    [http://localhost:8080/swagger](http://localhost:8080/swagger)\n\n\n## Endpoints\n\n### Recherche de lieux\n\nEndpoint : `/api/search`\n\n- **Méthode** : GET\n- **Paramètres** :\n  - `q` (obligatoire) : La requête de recherche.\n  - `lang` (facultatif) : La langue de la réponse (par défaut, \"en\").\n- **Exemple** : [http://localhost:5000/api/search?q=Paris](http://localhost:5000/api/search?q=Paris)\n\n### Prévisions météo\n\nEndpoint : `/api/forecast`\n\n- **Méthode** : GET\n- **Paramètres** :\n  - `q` (obligatoire) : La requête de recherche.\n  - `days` (facultatif) : Le nombre de jours de prévisions (par défaut, 3).\n  - `lang` (facultatif) : La langue de la réponse (par défaut, \"en\").\n- **Exemple** : [http://localhost:5000/api/forecast?q=Paris](http://localhost:5000/api/forecast?q=Paris)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacktireh%2Fdotnetweatherapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacktireh%2Fdotnetweatherapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacktireh%2Fdotnetweatherapi/lists"}