api
POST /shorten- body:
{ "url": "https://some.long.url.com" } - response:
{ "short_url": "https://tsiny.herokuapp.com/some_id" }
- body:
POST /resolve- body:
{ "id": "some_id" } - response:
{ "url": "https://some.long.url.com" }
- body:
POST /shorten
{ "url": "https://some.long.url.com" }{ "short_url": "https://tsiny.herokuapp.com/some_id" }POST /resolve
{ "id": "some_id" }{ "url": "https://some.long.url.com" }