rajeshdh / url-shortner

FreeCodeCamp API Basejump: URL Shortener Microservice

Home Page:https://obscure-dusk-61787.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FreeCodeCamp API Basejump: URL Shortener Microservice

User stories:

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 creation usage:
https://obscure-dusk-61787.herokuapp.com/new/https://www.google.com

https://obscure-dusk-61787.herokuapp.com/new/http://foo.com:80

Example creation output
{
"original_url":"http://foo.com:80",
"short_url":"https://obscure-dusk-61787.herokuapp.com/8170"
}
Usage:

https://obscure-dusk-61787.herokuapp.com/2871

Will redirect to:

https://www.google.com/

About

FreeCodeCamp API Basejump: URL Shortener Microservice

https://obscure-dusk-61787.herokuapp.com/


Languages

Language:JavaScript 60.4%Language:HTML 39.6%