Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 474 Bytes

readme.md

File metadata and controls

38 lines (35 loc) · 474 Bytes

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.