API Design
The basic function can just use 2 apis:
- Post getShortUrl(String longUrl) : string ShortUrl. the api will be used to generate a short url and return a short url
- Get getLongUrl(String short) : string longUrl. This api is used to look up a long url per shortUrl
- Get short url redirect to long url