Skip to content

quaintdev/urlshortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

An URL shortener api implementation

Usage

The application provides two endpoints

  1. /shorten - accepts json POST request as shown below. It responds with additional shortUrl parameter that can be used to access original webpage.
    {
      "LongUrl":"https://news.ycombinator.com/news"
    }
    
  2. /- accepts short url as GET request and redirects to original webpage.

Application provides another endpoint on port 3001. It allows to take backup of url store that are then loaded when the application starts.

  1. /backup is used to take backups of the url store.

Note that with VSCode, you can use requests.http to test the application.

About

A basic url shortener service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published