一、基本信息
接口名称:获取全部教室信息接口
接口说明:获取学校所有教室(场地)信息列表
请求地址:${BASEURL}/dataconnectorserv/integration/basic/getLocations
请求方式:POST
请求类型:application/json
接口频率:接口调用上限500次/天
接口版本:3.0
修改日期:2023-12-05
二、请求参数
| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| appKey | String | 是 | 平台提供的唯一标识 |
| schoolID | String | 是 | 学校ID,从学校列表获取 |
{
"appKey": "36s2zllw",
"schoolID": "wca5opSRt2tyyBSLqOjdoS=="
}
三、响应结果
| 响应参数名称 | 响应参数类型 | 是否有值 | 说明 |
|---|---|---|---|
| locations | Array | 是 | 场地信息列表 |
| locationID | String | 是 | 场地ID |
| locationName | String | 是 | 代表xx楼xx号房间,全校唯一 |
| building | String | 是 | 代表建筑物,null值,表示没有教学楼 |
| group | String | 否 | 位置分组标签(表示是个抽象的分组如“校区+教学楼+门牌号”) |
{
"code": 0,
"status": "success",
"result": {
"locations": [
{
"locationID": "1",
"locationName": "初一1班",
"building": "小福楼",
"group": "东校区"
},
{
"locationID": "2",
"locationName": "操场",
"building": null,
"group": null
},
{
"locationID": "3",
"locationName": "初一2班",
"building": null,
"group": "东校区"
}
]
}
}