This is a url shortener api that I made with python. I use Django Rest Framework.
You can run the server with
docker-compose up --build -d
- method:
POST
- path:
createShortUrl/
- body:
{ ""originUrl": string, }
- response:
{ "Origin_Url": string, "Short_Url": string, }
-
method:
GET
-
path:
listUrl/
-
response:
{ "id": integer, "originUrl": string, "shortUrl": string, "visit": integer }
- method:
GET
- path:
<str:shorturl>