Skip to content

sruthicp/shorturl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Shorturl is an api developed in Go to short long urls.

Getting Started

steps to run

  • Clone this repository
  • cd shorturl
  • docker-compose up -d (to up shorturl and it's dependent services)

Build and Test

When the service is up you can do POST request to generate a short url

example:

url : http://localhost:8080/generate

request body:

{
	"url": "https://docs.microsoft.com/en-us/azure/devops/report/powerbi/data-connector-connect?view=azure-devops"
}

This request return a response with the short url like the following

{
    "url":"http://localhost:8080/e2bc8299"
}

you can now use this short url instead of your long url.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published