url-shortener-api
Install
git clone https://github.com/h4cktivist/url-shortener-api.git
cd url-shortener-api
pip install -r requirements.txt
Run
python app.py
Usage
Send POST
request to /
with url
param (e.g to http://127.0.0.1:5000/?url=https://www.google.com
)
Responce example should be like this:
{
"url": "https://www.google.com",
"shortenedUrl": "http://127.0.0.1:5000/wBlVdz"
}
Go to the shortenedUrl
to be redirected on URL that you shortened