Skip to content

hugoantunes/tier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShorterURL

Simple API to make your URLs shorter

Dependencies:

redis

How To:

Installation:

make setup
make test

Use:

make run

Short an URL

curl -i -H "Content-Type: application/json" -X POST -d '{"url":"http://google.com"}' http://localhost:5000/url
# response
{
  "original": "http://google.com",
  "short": "b'2e32ee40-baaa-52e8-8227-a4ced6c95d14'"
}

# access
curl -i  http://localhost:5000/<short>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published