URL Shortener API Docs
User Stories:
-
You submit a
valid hostname as a parameter and receive a shortened URL in JSON response.
API endpoint is
GET https://apis-v1-jolav.glitch.me/url/validHostname
-
If you pass an invalid hostname that doesn't follow the valid
www.domain.extension or example.extension
format, the JSON response will contain an error instead.
-
If you visit a shortened URL you will be redirected to the original link.
Example Usage:
Example Output:
{
"short": 69 ,
"original":"codetabs.com",
}