Skip to content

saminyasar004/shortly-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 🚀