Shrty is a simple to use, go based link shortner with api connection.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
kreativmonkey 7312599c8b init testing 7 years ago
short First Restful API Version 7 years ago
template Change some logigs 7 years ago
.gitignore Add build files 7 years ago
LICENSE Initial commit 7 years ago
README.md New Features 7 years ago
handlers.go init testing 7 years ago
main.go init testing 7 years ago
routs.go init testing 7 years ago

README.md

shrt

Shrt is a url shortner writen in Go and by (Polr)[https://polr.me/index.php].

Features

  • No duplicated URL
  • Simple UI
  • Simple database Json file
  • Restful API
  • Simple Click Statistik
  • Delete URL
  • Login

Restful API

Short an URL

GET: http://example.com/api/action/shorten?key=API_KEY_HERE&url=http://example.de/shortening/main?q=5x

Response: 
{ "action": "shorten",
  "result": "https://example.com/5kq" }

Lookup for existing URL

GET: http://example.com/api/action/lookup?key=API_KEY_HERE&url_ending=5kq

Response: 
{ "action":"lookup",
  "result": {
        "long_url": "http://example.de/shortening/main?q=5x",
        "created_at": "2017-05-12 22:48:40.997520107 +0200 CEST",
        "clicks":"0" 
        }
}