Skip to content

Tinify is a streamlined URL shortener powered by Spring, PostgreSQL, Hibernate, and React. Transform lengthy URLs into concise, shareable links effortlessly.

License

Notifications You must be signed in to change notification settings

Porumbescu/Tinify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tinify - A Streamlined URL Shortening Tool

Tech Stack:

  • Backend:
  • Database:
  • Frontend:

🚀 API Endpoints


🔗 Shorten URL

  • Endpoint: /api/tinify/shorten

  • HTTP Method: POST

  • Payload:

{
   "originalUrl": "https://www.example.com"
}
  • Description: Accepts a lengthy URL and returns its shortened form. If the provided URL is either invalid or inaccessible, an error will be thrown. The function first verifies if the URL is already present in the database. If so, its existing shortened code will be returned; otherwise, a new code will be generated and stored alongside the original URL in the database.

🔍 Redirect to Original URL

  • Endpoint: /{shortCode}
  • HTTP Method: GET
  • Parameter:
    • shortCode: Represents the shortened version of an original URL.
  • Description: Given a shortCode, the system fetches the associated original URL and redirects the user to that URL. If no match is found, a 404 Not Found response is triggered.

About

Tinify is a streamlined URL shortener powered by Spring, PostgreSQL, Hibernate, and React. Transform lengthy URLs into concise, shareable links effortlessly.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published