/shortly-backend

This is an URL shortener API.

Primary LanguageJavaScript

Shortly | Link Shortener

Shorten user defined link.

API Methods

The API accect only GET method.

API Routes

  • Base route
https://shortly-samin.herokuapp.com
  • Shorten a link
https://shortly-samin.herokuapp.com/shorten

Create a short link for a given URL. Requires a url parameter

Example

https://shortly-samin.herokuapp.com/shorten?url=example.org

Response

{
  "result": {
      "shortenId": "kcven",
      "shortenLink": "https://shortly-samin.herokuapp.com/redirect/kcven",
      "originalLink": "http://example.org"
  }
}

The frontend part of this project

The Live preview of this project

Happy Coding 🚀