Skip to content

A URL shortening REST service, built on Java Spark. Utilized a DDD approach along with test driven devopment.

Notifications You must be signed in to change notification settings

nuno1212s/URLShortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortening service

A simple REST API to shorten URLs with a DDD design and TDD.

REST Api made available

GET /short/{url} -> resolve a shortened URL

Returns code 301 or 404 if it was not found Malformed URLs will return 400

POST /shorten -> shorten a URL

Input is json representation of this form

public record URLShortenForm(String originalURL) { }

Output will be a 200 with a response based on the response bellow.

Will return 400 for malformed inputs, 500 for internal server error while processing the shorten

public record URLShortenResponse(String originalURL, String shortenedURL) {}

About

A URL shortening REST service, built on Java Spark. Utilized a DDD approach along with test driven devopment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages