Api
You can create short url by entering by an existing URL, e.g. www.yahoo.com, a call to create:/url/create/?longurl=www.yahoo.com like Create URL
You can put a shorturl if you want. His length must be exactly 6. If not, the shorturl will truncated to this length/url/create/?longurl=www.yahoo.com&shorturl=asdxyzttttt like Create URL
If the request is a usually POST/GET, the Details page will be displayed. See Create URLIf the request is Ajax Post, then the return will be a json with longurl and shorturl TODO : demo