API Design
The following are the APIs that we need
- /shorten (POST API): Takes original long url(string), takes expiration date (date time). Returns shortened API, creation date, expiration date.
- /{shortened_url} (GET API) : Takes the shortened url in parameters, in response redirects to the long url.