简易版API-Gateway服务
cd $YOUR_GO_WORKSPACE/src/
git clone THIS_REPOSITORY
go run main.go
服务访问地址为 http://localhost:8888
成功:
{
"retcode": 200,
"res": {
"id":"10086",
"name":"user1"
}
}
失败:
{
"retcode": NOT_200_CODE,
"msg": "ERR-MSG"
}
URL | Method | Desc |
---|---|---|
/gateway/user_order/ | GET | 用户_订单信息 |