A server side application that shortens url
URL: http://localhost:8888/url_gen
- Effect: will generate a shortened_url
- For example, www.google.com will be mapped to http://localhost:8888/url_shortener/XXXXXX
- Returns: {"original_url":url, "shorted_url":url}
http://localhost:8888/url_gen?change=text
- Effect: will generate a shortened_url with text as it's last path
- For example, www.google.com will be mapped to http://localhost:8888/url_shortener/XXXXXX
- Returns: {"original_url":url, "shorted_url":url}
http://localhost:8888/url_info?url_shortened=http://localhost:8888/url_shortener/XXXXXX
- Effect: will search for the usage of the shortened_url
- Returns : {"count":int}
http://localhost:8888/url_shortener/XXXXXX
- Effect: will return the original url that is going to be access
- Returns : {"original_url":url}
http://localhost:8888/url_latest_100
- Effect: will return the latest 100 shortened urls
- Returns : {"latest_100_shortened_urls":[{"shortened_url":url, "date":date}, ...multiple if any]}
http://localhost:8888/url_top_10_domain_30_days
- Effect: will return the top 10 shortened domains in the last 30 days
Returns : {"top_10_domain_30_days":[{"domain":url, "count":int}, ...multiple if any]}
Backend Framework : Python Tornado and Momoko
Url Shortener : Uses random number generator to shorten a url