/link-shortener

A simple shortener REST service implementing the basic CRUD methods

Primary LanguageJavaScriptGNU Lesser General Public License v3.0LGPL-3.0

Link Shortener - Build Status

A simple shortener REST service implementing the basic CRUD methods

Blog Post

http://blog.adaofeliz.com/2014/12/03/github-project-link-shortener/

DEMO

link-shortener.adaofeliz.com

Service API

Response Method Path Description
ShortLink POST /api/link Create a new Short Link.
ShortLink GET /api/link/{shortUri} Get JSON representation of a given short uri.
N/A PUT /api/link/{shortUri} Update the urginal url of a given Short Link.
N/A DELETE /api/link/{shortUri} Delete a Short Link from the database.
ShortLink List GET /v1/api/link/all Get All Short Links in the database.

Swagger UI

Swagger UI

Database

  • H2 Database Engine - Mode: Embedded and In-memory
  • Connect to production database - Spring Boot Docs

Installation

  • Clone this project
git clone https://github.com/adaofeliz/link-shortener.git link-shortener
  • Start Up the Application
cd link-shortener
mvn clean install
java -jar link-shortener-service/target/link-shortener.war

Try it