Skip to content

mustafakamay/UrlShortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published