获取网页协同特性
接口功能
获取网页协同特性。
接口原型
请求方法 | POST | |
|---|---|---|
请求URL | https://ip:port/service-cloud/rest/webadapter/v1/connectionInfo/queryTenantFeatureForCobrowse | 其中,ip:port为对外暴露的nslb的ip和port |
参数名称 | 选取原则 | 参数类型 | 默认值 | 说明 |
|---|---|---|---|---|
Content-Type | 必选 | String | 无 | 固定填 application/json; charset=UTF-8。 |
Cookie | 必选 | String | 无 | 集成页面的时候,ccmessaging通过请求响应,将ccmessaging-token写到集成页面浏览器的Cookie中。单独调用时需确保请求头的Cookie中含有ccmessaging-token=xxx,xxx为ccmessaging-token值。 |
请求参数
参数名称 | 选取原则 | 参数类型 | 说明 |
|---|---|---|---|
featureCode | 必选 | String | 特性ID。 |
响应参数
参数名称 | 选取原则 | 参数类型 | 说明 |
|---|---|---|---|
retCode | 必选 | String | 接口响应码,0:成功 |
retMsg | 可选 | String | 接口描述 |
data | 可选 | Object | 特性信息 |
参数名称 | 选取原则 | 参数类型 | 说明 |
|---|---|---|---|
id | 必选 | String | ID |
featureCode | 必选 | String | 特性ID |
parentFTCode | 必选 | String | 父特性ID |
featureName | 必选 | String | 特性名称 |
value | 必选 | String | 特性取值 |
unit | 可选 | String | 计量单位描述 |
featureParams | 可选 | String | 特性参数 |
tenantId | 必选 | String | 租户ID |
partdbId | 必选 | String | 分区ID |
接口示例
- 请求示例
POST /service-cloud/rest/webadapter/v1/connectionInfo/queryTenantFeatureForCobrowse host: 10.10.10.2:18446 connection: Keep-Alive x-forwarded-for: 10.10.10.3, 10.10.10.4 x-real-ip: 10.10.10.5 content-length: 401 remote-host: 10.10.10.6 user-agent: java/socket content-type: application/json; charset=utf-8 cookie: JSESSION*****#*#*****3 ccmessaging-token:******** accept: */* { "featureCode":"88001800100" } - 响应示例
{ "retCode":"0", "data":{ "id":"xx", "featureCode":"88001800100", "parentFTCode":"xx", "featureName":"xx", "value":"xx", "unit":"xx", "featureParams":"xx", "tenantId":"xx", "partdbId":"xx" } }

