Loading...
The system should:
The system should be:
POST /api/v1/shorten
{
"longUrl": "https://example.com/very/long/url",
"customAlias": "myurl", // optional
"expiry": "2026-01-01" // optional
}
{
"shortUrl": "https://tiny.ly/myurl"
}
GET /{shortCode}
GET /api/v1/analytics/{shortCode}
shortCode → longURL