- I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.
- When I visit that shortened URL, it will redirect me to my original link.
/api/shorturl/new/https://www.google.ca
{ "original_url": "https://www.google.ca", "code": "4645" }
/api/shorturl/4645
https://www.google.ca