Skip to content

saalaus/shortener-api-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Url shortener API on FastAPI

API Reference

Short new url

  POST /api/url/new
Parameter Type Description
url string Required. Url to short
name string Name for shorten url

Get url info

  GET /api/url/${url_name}
Parameter Type Description
url_name string Required. Url name to fetch

Update url info

  PATCH /api/url/update
Parameter Type Description
new_name string New url name
url string New url
active string Disable/enable url

Delete url

  DELETE /api/url/delete
Parameter Type Description
name string Required. Name url to delete

Redirect to url

  GET /${url_name}
Parameter Type Description
url_name string Required. Url name to redirect

About

Link tamer written in FastApi

Resources

Stars

Watchers

Forks