Skip to content

vgnshiyer/tinyurl-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinyurl-go

An Educational project: A Tiny URL service implementation in golang.

Tools Used:

  • go-fiber
  • redis
  • docker, docker-compose

API Documentation

Endpoints

  • /api/v1

Method: POST

Sample Body:

{
  "url": "https://www.google.com/asd2352f"
}

Sample Response:

{
  "url": "https://www.google.com/asd2352f",
  "CustomShort": "<DOMAINNAME>/afv23x",
  "Expiry": 24,
  "XRateRemaining": 10,
  "XRateLimitReset": 30
}
  • /id

Method: GET

Response: Redirects to actual url

About

A Tiny URL service implementation in golang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published