Loading...
post /api/v1/url
create short url
json
{
longurl : "https://test.com/product/23143"
expire date: 30-6-2026
}
respose
{
short url: "https:/sho.rt/abcd"
expire date: 30-6-2026
}
get https:/sho.rt/abcd
respose
https://test.com/product/23143
Deep dive into 2-3 key components. Explain how they work, how they scale, discuss tradeoffs, capacity, and any relevant algorithms or data structures.