Skip to content

topd5/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL shortener

Run:

docker compose up

POST request to:

http://localhost:11200/api/short

with payload:

{
	"url": "https://example.com"
}

201 answer example:

{
	"url": "https://example.com",
	"short": "Q4KCcAP"
}

To get loopback url from shorten value: GET request to:

http://localhost:11200/api/Q4KCcAP

200 answer example:

{
	"short": "Q4KCcAP",
	"url": "https://example.com"
}

All data is stored in Redis.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages