通过泳道ID查询泳道信息
更新时间 2025-09-11 14:29:22
最近更新时间: 2025-09-11 14:29:22
接口功能介绍
调用getSwimmingInfoById通过泳道id查询泳道信息
接口约束
无
URI
GET /msgc/v1/swimming/swimmingInfo
路径参数 无
Query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
groupId | 是 | Integer | 泳道组id | 1 | |
swimmingId | 是 | Integer | 泳道id | 15 |
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionId | 是 | String | 资源池ID | bb9fdb42056f11eda161xxxxxxxxx | |
msnamespace | 是 | String | 环境参数 | default |
请求体body参数 无
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | Integer | 响应编码 2000 success | 2000 | |
returnObj | Array of Objects | 返回体 | returnObj | |
message | String | 消息内容 | success | |
表 returnObj |
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
groupId | Integer | 泳道组id | 10 | |
swimmingId | Integer | 泳道id | 99 | |
swimmingName | String | 泳道名 | Test-swimming | |
tag | String | 标签名 | gray | |
path | String | 入口应用路由规则路径 | /test/path | |
condition | String | 规则条件AND/OR | AND | |
swimmingAppItems | Array of Objects | 当前泳道内存在的应用列表 | swimmingAppItems | |
conditionItems | Array of Objects | 入口应用路由规则条件列表 | conditionItems | |
enable | Integer | 规则开关状态 1规则打开 0规则关闭 | ||
表 swimmingAppItems |
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
appId | String | 应用唯一id | 723df9e5e575bf9e91f4e1axxxxxx | |
appName | String | 应用名 | demo-app | |
表 conditionItems |
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
type | String | 类型 cookie/header/param/body | cookie | |
param | String | 参数名 | tag | |
cond | String | 条件=、!=、>、<、>=、<=、in、%(百分比)、regexp(正则)、mod(模100) | = | |
value | String | 参数值 | gray | |
operator | String | cond为mod时,operator赋值=、!=、>、<、>=、<= | = | |
expr | String | 使用Dubbo框架时,expr代表参数获取表达式 | .name | |
index | Integer | 使用Dubbo框架时,index代表取得是第几个参数 | 0 |
枚举参数
无
请求示例
请求url
https://{endpoint}/msgc/v1/swimming/swimmingInfo?groupId=200030&swimmingId=200019
请求头header
{
"regionId":"bb9fdb42056f11eda161xxxxxxxxx",
"msnamespace":"default"
}
请求体body
无
响应示例
{
"statusCode":2000,
"message":"success",
"returnObj": {
"groupId":134,
"swimmingId":127,
"swimmingName":"test12",
"tag":"gray",
"path":"/test123",
"condition":"AND",
"swimmingAppItems":[
{
"appId":"723df9e5e575bf9e91f4e1axxxxxx",
"appName":"demo-app"
}
],
"conditionItems":[
{
"index":0,
"expr":null,
"type":"cookie",
"param":"213",
"cond":"mod",
"value":"0",
"operator":"="
}
],
"enable":1
}}
状态码
请参考 状态码
错误码
请参考 错误码