- POST a URL to
[project_url]/api/shorturl/new
and 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.
-
Notifications
You must be signed in to change notification settings - Fork 0
URL Shortener Microservice API
License
sbvkrishna/shorturl
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
URL Shortener Microservice API
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published