coryflucas / urlshortner

A simple URL shortner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple URL Shortner Service

This app exposes a simple API to create short URLs for longer ones and routes the requests to their specified destination.

API

The API exposes a single endpoint to create a new short URL.

Request

POST /api/shorturl HTTP/1.1
{
    "url": "https://www.corylucas.com"
}

Response

{
    "shortUrl": "http://localhost:5000/dXATd3"
}

Following the link will result in a 302 to the original URL.

About

A simple URL shortner


Languages

Language:Java 99.7%Language:Ruby 0.3%