![CircleCI](https://camo.githubusercontent.com/302c1f41fcc4225ab1af2de62149275db9dd1ff1f2e7b26050fbf49f18779fa1/68747470733a2f2f636972636c6563692e636f6d2f67682f616268696e61766d616c6c2f75726c2d73686f7274656e65722d6d6963726f736572766963652e7376673f7374796c653d737667)
FreeCodeCamp API Basejump: URL Shortener Microservice
- I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.
- If I pass an invalid URL that doesn't follow the valid http://www.example.com format, the JSON response will contain an error instead.
- When I visit that shortened URL, it will redirect me to my original link.
https://url-shortener-62805.herokuapp.com/add/https://techcrunch.com/
{"original_url":"https://techcrunch.com/","short_url":"https://url-shortener-62805.herokuapp.com/44f6536"}
https://url-shortener-62805.herokuapp.com/44f6536
https://techcrunch.com/
Follow me on twitter.