URL Shortener Microservice
- I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.
- When I visit that shortened URL, it will redirect me to my original link.
Example usage
- Create
/api/shortener/new/https://www.google.com
/api/shortener/new/http://foo.com:80
- Consume
/api/shortener/2871 // will redirect to https://www.google.com/
Example output
- Create
{ "original_url":"http://foo.com:80", "short_url":"https://site.domain/api/shortener/8170" }