提交一个长域名生成短域名
Method: POST
URL: http://wkt.ooo/api/short
Headers:
Content-Type: application/json
Body:
{
"long_url":"https://www.baidu.com/s?wd=hellowlrd&rsv......."
}
Body
{
"url":"http://wkt.ooo/f8B6Y"
}
curl -X POST "http://wkt.ooo/api/short" -H "Content-Type: application/json" --data '{"long_url":"http://www.baidu.com"}'
{"url":"http://wkt.ooo/f8B6Y"}