Link Shortener

This is a REST API for shortening URLs, built using Express.js. It provides endpoints for generating short URLs, retrieving original URLs, and managing records for the same.

API Documentation

Shrink long URL POST /shrink

This route generates the 8-character hash code for the long URL passed in the JSON format.

Fetch long URL GET /url/:code

This route returns the long URL corresponding to the 8-character hash code sent as the query parameter.

Visit long URL GET /visit/:code

This route redirects to the webpage whose URL corresponds to the 8-character hash code sent as the query parameter.

All records GET /all

This route enlists all the long URLs alongwith their hashed codes.

Made with 🧡 by Nirmit Mishra.