package
0.0.0-20180420090448-1c696ee4905b
Repository: https://github.com/beego/samples.git
Documentation: pkg.go.dev
# README
Shorturl
This sample is a API application based on beego. It has two API func:
- /v1/shorten
- /v1/expand
Installation
cd $GOPATH/src/samples/shorturl
bee run
Usage:
# shortening url example
http://localhost:8080/v1/shorten/?longurl=http://google.com
{
"UrlShort": "5laZG",
"UrlLong": "http://google.com"
}
# expanding url example
http://localhost:8080/v1/expand/?shorturl=5laZG
{
"UrlShort": "5laZG",
"UrlLong": "http://google.com"
}
# Packages
No description provided by the author
No description provided by the author
No description provided by the author