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.

41 lines
782 B
Markdown

8 years ago
# shrt
8 years ago
Shrt is a url shortner writen in Go and by (Polr)[https://polr.me/index.php].
## Features
8 years ago
* [x] No duplicated URL
* [x] Simple UI
8 years ago
* [x] Simple database Json file
* [x] Restful API
* [x] Simple Click Statistik
* [ ] Delete URL
* [ ] Login
8 years ago
8 years ago
8 years ago
## Restful API
8 years ago
8 years ago
Short an URL
8 years ago
```
8 years ago
GET: http://example.com/api/action/shorten?key=API_KEY_HERE&url=http://example.de/shortening/main?q=5x
8 years ago
8 years ago
Response:
{ "action": "shorten",
"result": "https://example.com/5kq" }
8 years ago
```
8 years ago
Lookup for existing URL
8 years ago
```
8 years ago
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"
}
8 years ago
}
8 years ago
```