内部调用
内部调用协议
http://{nodeAddress}/internal/operations/{operationPath}
Example:: http://localhost:9991/internal/operations/Internal
Content-Type: application/json
X-Request-Id: "83821325-9638-e1af-f27d-234624aa1824"
# JSON request
{
"input": {"name": "fireboom"}, // operation请求入参
"__wg": { // 全局参数
"clientRequest": { // 原始客户端请求,即请求9991端口的request对象
"method": "GET",
"requestURI": "/operations/Weather?code=beijing",
"headers": {
"Accept": "application/json",
"Content-Type": "application/json"
}
},
"user": { // (可选)授权用户的信息
"userID": "1",
"roles": ["user"]
}
}
}
# JSON response
{
"data": {} // operation返回结果
"errors": [
{
"message": "error message",
"path": "" // 可选,设置报错定位
}
]
}InternalClient实现及使用
内部调用安全
内部OPERATION
流程图

常见用例
最后更新于
