Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 609 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 609 Bytes

URL Shortener Microservice

How it works:

    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:

https://url-shortener-88digital.herokuapp.com/new/https://www.google.com https://url-shortener-88digital.herokuapp.com/new/http://foo.com:80

Example output: { "original_url":"http://foo.com:80", "short_url":"https://url-shortener-88digital.herokuapp.com/8170" }

Usage: https://url-shortener-88digital.herokuapp.com/2871

Will redirect to: https://www.google.com/