Skip to content

FastAPI using dbm and fastAPI for URL shortener service

License

Notifications You must be signed in to change notification settings

smck83/shortlink-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shortlink-api

FastAPI using dbm for URL shortener service

docker run

docker run -it -p 8000:8000 -e HOST_URL="https://example.com" smck83/shortlink-api

create url

GET request https://localhost:8000/createShortURL?url=https://www.longurl.example.com

Response:

{
  "url": "https://example.com/2N78N",
  "longURL": "https://www.longurl.example.com"
}

visit url

https://localhost:8000/2N78N or https://example.com/2N78N

About

FastAPI using dbm and fastAPI for URL shortener service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published