{
// =========================
// 接口地址(二选一生效)
// =========================
// 生产环境接口地址
"ProdUrl": "https://api.xxx.com/user/info",
// 测试环境接口地址
"TestUrl": "https://test-api.xxx.com/user/info",
// =========================
// 请求方式
// =========================
// 请求方法,目前仅支持:
// - "get" :param 会被当作 query string 拼接到 Url 后
// - "post" :param 会被序列化为 JSON,作为请求 body
"method": "get",
// =========================
// 请求参数
// =========================
// 当 method = "get" 时:
// param 必须是字符串,格式为标准 query string
// 例如: "userId=123&status=active"
//
// 当 method = "post" 时:
// param 必须是一个 JSON 对象
// 会被直接 AsJSON 后写入 HTTP Body
"param": "userId=123456"
}
curl --location --request POST 'http://127.0.0.1:9307/cypnest/config/common/commonInterfaceForward' \
--header 'Content-Type: application/json' \
--data-raw '{
// =========================
// 接口地址(二选一生效)
// =========================
// 生产环境接口地址
"ProdUrl": "https://api.xxx.com/user/info",
// 测试环境接口地址
"TestUrl": "https://test-api.xxx.com/user/info",
// =========================
// 请求方式
// =========================
// 请求方法,目前仅支持:
// - "get" :param 会被当作 query string 拼接到 Url 后
// - "post" :param 会被序列化为 JSON,作为请求 body
"method": "get",
// =========================
// 请求参数
// =========================
// 当 method = "get" 时:
// param 必须是字符串,格式为标准 query string
// 例如: "userId=123&status=active"
//
// 当 method = "post" 时:
// param 必须是一个 JSON 对象
// 会被直接 AsJSON 后写入 HTTP Body
"param": "userId=123456"
}'{}