Modern URL shortener built with ASP.NET Core Minimal APIs.
- 🚀 Minimal APIs - Lightweight ASP.NET Core architecture
- 🔗 URL Shortening - 5-character short codes
- ⏰ Auto Expiration - URLs expire after 24 hours
- 🗑️ Auto Cleanup - Background service removes expired URLs
- 📚 API Docs - Interactive documentation with Scalar
- ASP.NET Core (.NET 9)
- Entity Framework Core
- SQL Server
- Carter Framework
- OpenAPI/Scalar
-
Clone and setup (Update connection string in appsettings.json)
git clone https://github.com/ilkeozs/EzUrl.git cd EzUrl dotnet ef database update dotnet run
-
Visit
- App: Check your terminal for the running port
- Docs:
/scalar/v1
endpoint
GET /api/urls
- List all URLsGET /api/urls/{id}
- Get URL by IDPOST /api/urls
- Create short URLGET /{shortCode}
- Redirect to original URL
MIT