0x457 / api_gateway

Golang 网关服务

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1.介绍

简易版API-Gateway服务

2.运行

cd $YOUR_GO_WORKSPACE/src/
git clone THIS_REPOSITORY

go run main.go

服务访问地址为 http://localhost:8888

3.API响应描述

成功:

{
    "retcode": 200,
    "res": {
        "id":"10086",
        "name":"user1"
    }
}

失败:

{
    "retcode": NOT_200_CODE,
    "msg": "ERR-MSG"
}

4.API列表

URL Method Desc
/gateway/user_order/ GET 用户_订单信息

About

Golang 网关服务


Languages

Language:Go 100.0%