Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 495 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 495 Bytes

API Basejump: URL Shortener Microservice

User stories:

  1. I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.
  2. When I visit that shortened URL, it will redirect me to my original link.

Example usage:

/api/shorturl/new/https://www.google.ca

Example output:

{ "original_url": "https://www.google.ca", "code": "4645" }

Usage:

/api/shorturl/4645

Will redirect to:

https://www.google.ca