Skip to content

envererguven/url_shortener

 
 

Repository files navigation

URL Shortener API

It is a url shortener application that can work in local. It has been prepared as a practical example.

Heroku deletes the data that the sqlite database holds every 24 hours as per their policy. I recommend the services of big service providers like bittly for use as I do. 😄

Usage

It can be accesible as Heroku App from here or locally with cloning this repository.

  • Urls to be shortened are taken from hoem page.
  • /encode endpoint encodes the given url and saves it in the database and returns all encoded urls in short and long versions as json output
  • /decode&<shortened_part> endpoint decodes the shortend url and return long original url as json output
  • /decode endpoint returns all urls in the database as json output
  • /<shortened_url> endpoint transfer original url with reading given shortened url from database
  • /get endpoint returns all urls in the database as json output

About

URL Shortener API, Flask & Sqlite DB, Heroku Deployment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.2%
  • HTML 17.6%
  • Procfile 0.2%