Skip to content

Latest commit

 

History

History
44 lines (39 loc) · 689 Bytes

README.md

File metadata and controls

44 lines (39 loc) · 689 Bytes

UrlShortener

This is a url shortener api that I made with python. I use Django Rest Framework.

Build and run

You can run the server with docker-compose up --build -d

Endpoints

CreateShortUrl

  • method: POST
  • path: createShortUrl/
  • body:
    {
        ""originUrl": string,
    }
  • response:
    {
    "Origin_Url": string,
    "Short_Url": string,
    }

AllUrlList

  • method: GET

  • path: listUrl/

  • response:

    {
        "id": integer,
        "originUrl": string,
        "shortUrl": string,
        "visit": integer
    }

RedirectUrl

  • method: GET
  • path: <str:shorturl>