GitXplorerGitXplorer
j

fcc-url-shortener

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
3c98822c6d0f593b16539bb70f0a675480e5e295

cleanup old misc

jjoshuahenson committed 9 years ago
Unverified
b40d1a9054f4c258b3a6ceb893fa5560b1912725

edit url

jjoshuahenson committed 9 years ago
Unverified
d4419d40f4a6a228ff96e9df31fb7dd6d2247caf

initial commit

jjoshuahenson committed 9 years ago

README

The README file for this repository.

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.

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.

Example creation usage:

https://short1.herokuapp.com/new/https://www.google.com

https://short1.herokuapp.com/new/http://freecodecamp.com/news

Example creation output:

{ "original_url": "http://freecodecamp.com/news", "short_url": "https://short1.herokuapp.com/4" }

Usage:

https://short1.herokuapp.com/4

Will redirect to:

http://freecodecamp.com/news