A little API that shortens URL's written in Go
-
URL
/new
-
Method:
POST
-
Sample Call:
curl --request POST \
--url http://localhost:8080/new \
--header 'content-type: application/json' \
--data '{"fullURL": "https://google.com"}'
-
URL
/{short_url}
-
Method:
GET
-
Sample Call:
curl --request GET \
--url http://localhost:8080/{short_url}