fengclient / django-shorturls

Django site of short urls, Django version of https://github.com/mozillazg/ShortURL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-shorturls

Django site of short urls, Django version of https://github.com/mozillazg/ShortURL

Features

  • Shorten URL.
  • QR Code.
  • Support all most URL scheme.

Demo

http://3sd.me

API

Long -> Short

URL: http://3sd.me/j/shorten
Method: POST
Parameters: url
Return: JSON

Examples:

$ curl 3sd.me/j/shorten -d "url=baidu.com"
{"shorten": "http://3sd.me/Jh8x3", "expand": "http://baidu.com"}

Short -> Long

URL: http://3sd.me/j/expand
Method: POST
Parameters: shorten
Return: JSON

Examples:

$ curl 3sd.me/j/expand -d "shorten=Jh8x3"
{"shorten": "http://3sd.me/Jh8x3", "expand": "http://baidu.com"}

About

Django site of short urls, Django version of https://github.com/mozillazg/ShortURL

License:MIT License


Languages

Language:Python 55.2%Language:JavaScript 39.3%Language:CSS 3.5%Language:HTML 2.1%