Skip to content

hemakshis/fcc-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

716efe9 · Jan 11, 2018

History

24 Commits
Dec 21, 2017
Oct 27, 2017
Oct 27, 2017
Jan 11, 2018
Dec 28, 2017
Oct 29, 2017
Dec 21, 2017
Dec 21, 2017
Dec 21, 2017

Repository files navigation

FCC API Basejump: URL Shortner Microservice

User Stories

  1. I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.
  2. 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.
  3. When I visit that shortened URL, it will redirect me to my original link.

Example Creation Usage

https://shorturl-hemakshis.herokuapp.com/new/https://www.facebook.com

https://shorturl-hemakshis.herokuapp.com/new/https://www.gmail.com

Example Creation Output

{"originalURL": "https://www.facebook.com", "shortURL": "https://shorturl-hemakshis.herokuapp.com/4338"}

{"originalURL": "https://www.gmail.com", "shortURL": "https://shorturl-hemakshis.herokuapp.com/9944"}

Example Usage

https://shorturl-hemakshis.herokuapp.com/7599

Will Redirect To

https://www.google.com

About

A simple URL Shortener Microservice API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published