API design
It will be composed of the following routes:
- GET /:unique_id - This will check if the provided unique_id exists and return the proper response (HTTP 302 if it exists or HTTP 404 if it doesn’t);
- POST /newurl - This will receive the full URL as a JSON property sent in the body, generate the unique_id based on the next sequential value available, and return the shortened url;