- POST a URL to
[project_url]/api/shorturl/newand receive a shortened URL in the JSON response. Example :{"original_url":"www.google.com","short_url":1} - If you pass an invalid URL that doesn't follow the valid
http(s)://www.example.com(/more/routes)format, the JSON response will contain an error like{"error":"invalid URL"}. - On visiting the shortened URL, it will redirect to the original link.
sbvkrishna/shorturl
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|