{"id":28234439,"url":"https://github.com/iyousefibrahim/dewalks","last_synced_at":"2026-05-17T04:34:06.574Z","repository":{"id":279240992,"uuid":"938178007","full_name":"iyousefibrahim/DEWalks","owner":"iyousefibrahim","description":"DEWalks API is a RESTful web API built using .NET 8 that provides functionalities for managing German regions and walks. It includes authentication, authorization, and logging mechanisms using JWT authentication and Serilog.","archived":false,"fork":false,"pushed_at":"2025-02-27T18:08:42.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T22:33:18.143Z","etag":null,"topics":["asp-net-core-api","csharp","dotnet-core","efcore","jwt-authentication","linq","oop-concepts","sqlserver"],"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/iyousefibrahim.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":"2025-02-24T14:45:11.000Z","updated_at":"2025-02-27T18:12:12.000Z","dependencies_parsed_at":"2025-02-24T15:49:09.885Z","dependency_job_id":null,"html_url":"https://github.com/iyousefibrahim/DEWalks","commit_stats":null,"previous_names":["iyousefibrahim/dewalks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iyousefibrahim/DEWalks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyousefibrahim%2FDEWalks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyousefibrahim%2FDEWalks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyousefibrahim%2FDEWalks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyousefibrahim%2FDEWalks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iyousefibrahim","download_url":"https://codeload.github.com/iyousefibrahim/DEWalks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyousefibrahim%2FDEWalks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271740712,"owners_count":24812642,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["asp-net-core-api","csharp","dotnet-core","efcore","jwt-authentication","linq","oop-concepts","sqlserver"],"created_at":"2025-05-18T22:13:42.976Z","updated_at":"2025-11-07T15:06:13.368Z","avatar_url":"https://github.com/iyousefibrahim.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEWalks API\n\n## Overview\nDEWalks API is a RESTful web API built using **.NET 8** that provides functionalities for managing German regions and walks. It includes authentication, authorization, and logging mechanisms using **JWT authentication** and **Serilog**.\n\nThis API is built as part of the Udemy course: **\"Build ASP.NET Core Web API - Scratch To Finish (.NET 8 API)\"**.\n\n## Features\n- **Regions Management**: Create, Read, Update, and Delete (CRUD) operations.\n- **Walks Management**: CRUD operations for walks.\n- **User Authentication \u0026 Authorization**:\n  - User Registration and Login with **ASP.NET Core Identity**.\n  - JWT-based authentication.\n  - Role-based access control (RBAC) for secured endpoints.\n- **Exception Handling Middleware**: Global error handling for better debugging.\n- **Logging**: Integrated **Serilog** for logging errors and important application events.\n- **Swagger UI**: API documentation and testing using Swagger.\n\n## Technologies Used\n- **.NET 8 Web API**\n- **Entity Framework Core** (EF Core) for database access\n- **SQL Server** for data storage\n- **ASP.NET Core Identity** for authentication\n- **JWT (JSON Web Token)** for secure API access\n- **Serilog** for logging\n- **AutoMapper** for object mapping\n- **Swagger** for API documentation\n\n## API Endpoints\n### Authentication\n- **POST /api/auth/register** - Register a new user.\n- **POST /api/auth/login** - Authenticate and get a JWT token.\n\n### Regions\n- **GET /api/regions** - Get all regions (**Public**).\n- **GET /api/regions/{id}** - Get a region by ID (**Public**).\n- **POST /api/regions** - Add a new region (**Writer only**).\n- **PUT /api/regions/{id}** - Update a region (**Writer only**).\n- **DELETE /api/regions/{id}** - Delete a region (**Writer only**).\n\n### Walks\n- **GET /api/walks** - Get all walks (**Public**).\n- **GET /api/walks/{id}** - Get a walk by ID (**Public**).\n- **POST /api/walks** - Add a new walk (**Writer only**).\n- **PUT /api/walks/{id}** - Update a walk (**Writer only**).\n- **DELETE /api/walks/{id}** - Delete a walk (**Writer only**).\n\n## Middleware\n### Exception Handling Middleware\n- Handles all unhandled exceptions and returns a custom error response.\n- Logs errors using Serilog.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyousefibrahim%2Fdewalks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiyousefibrahim%2Fdewalks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyousefibrahim%2Fdewalks/lists"}