- api register
- manage api
- save api
http://{mgw.addr}/mgw api list
name string
check.method string get | post | options | put | delete
check.path string /check or you path, default "" if not check
check.interval int check interval , default 30 second
check.timeout int check timeout, default 30 second
{host}: [{api}, {api}]
- {mgw.addr} this server online address
- {microservice.ip} you micro service address
POST http://{mgw.addr}/mgw/sign
Payload:
{
"name": "account microserver by jack",
"check": {
"method": "get",
"path": "/check",
"interval": 30,
"timeout": 50
},
"http://microservice.ip:40000": [
"/api/users/auth",
"/api/users/authorize",
"/api/users/department",
"/api/users/department/*",
"/api/users/department/sync",
"/api/users/dept/us/*",
"/api/users/sync/*"
]
}
some code from Caddy project
This repo relies on the following third-party projects: