URL Shortening Service (.NetCore/C#)
Will update more gradually...
-
Shorten a long URL: Given a valid long URL, api will return a short url.
-
Expand a short URL: Given a valid short url (shorten by this api before), will return the original long url.
-
The shortened URL (at least the relative URL path) will be shorter in length than the provided URL (minimum length: 3 & maximum length: 8).
-
If same long URL is provided, the same short URL will be returned.
Say, If we provide following long url--
the api may return a unique short url like this -> "http://s.my/kmRgXmmT"
"^(?:(https?|ftps?):\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\\$&'\\(\\)\\*\\+,;=.]+$"