API列表
请求方式 |
API |
描述 |
POST |
/v1.0/iot-02/third/parking/lanes |
添加车道 |
POST |
/v1.0/iot-02/third/parking/lanes/batch |
批量添加车道 |
GET |
/v1.0/iot-02/third/parking/lanes |
查询车道 |
DELETE |
/v1.0/iot-02/third/parking/lanes/batch |
删除车道 |
添加车道
功能描述
添加车道
接口地址
POST /v1.0/iot-02/third/parking/lanes
请求参数
参数名 |
类型 |
参数类型 |
说明 |
是否必需 |
parking_lot_id |
String |
body |
车场 id |
true |
device_id |
String |
body |
设备 id,不超过 64 个字符 |
true |
gateway_id |
String |
body |
网关 id,不超过 64 个字符 |
true |
device_cid |
String |
body |
设备 cid,不超过 64 个字符 |
true |
device_name |
String |
body |
设备名,不超过 100 个字符 |
true |
direction |
String |
body |
出入口方向,(inlet:入口;outlet:出口;inlet_outlet:出入口) |
true |
install_address |
String |
body |
安装地址,不超过 255 个字符 |
true |
返回参数
参数名 |
类型 |
说明 |
code |
Integer |
响应码(详情见错误码章节),成功时为空 |
success |
Boolean |
是否成功:(true:成功,false:失败) |
msg |
String |
请求失败的信息,成功时为空 |
t |
Long |
返回时间戳,13 位 |
result |
String |
车道 id |
请求示例
POST /v1.0/iot-02/third/parking/lanes
{
"parking_lot_id": "yCln8xHFBU",
"device_id": "R6vl5io3JM",
"gateway_id": "2utvMJ4NDK",
"device_cid": "tplr1oCqU9",
"device_name": "g36JjqPS1u",
"direction": "inlet",
"install_address": "A4xhJlJJKj"
}
响应示例
{
"success": true,
"t": 1573441137,
"result": "TbFytGbaD2"
}
批量添加车道
功能描述
批量添加车道
接口地址
POST /v1.0/iot-02/third/parking/lanes/batch
请求参数
参数名 |
类型 |
参数类型 |
说明 |
是否必需 |
parking_lot_id |
String |
body |
车场 id |
true |
lanes |
Object[] |
body |
车道集 |
true |
parking_lot_id |
String |
body |
车场 id |
false |
device_id |
String |
body |
设备 id,不超过 64 个字符 |
true |
gateway_id |
String |
body |
网关 id,不超过 64 个字符 |
true |
device_cid |
String |
body |
设备 cid,不超过 64 个字符 |
true |
device_name |
String |
body |
设备名,不超过 100 个字符 |
true |
direction |
String |
body |
出入口方向,(inlet:入口;outlet:出口;inlet_outlet:出入口) |
true |
install_address |
String |
body |
安装地址,不超过 255 个字符 |
true |
返回参数
参数名 |
类型 |
说明 |
code |
Integer |
响应码(详情见错误码章节),成功时为空 |
success |
Boolean |
是否成功:(true:成功,false:失败) |
msg |
String |
请求失败的信息,成功时为空 |
t |
Long |
返回时间戳,13 位 |
result |
String[] |
车道 id 列表 |
请求示例
POST /v1.0/iot-02/third/parking/lanes/batch
{
"parking_lot_id": "z4eRPB3XgQ",
"lanes": [
{
"parking_lot_id": "VD9mhBLstu",
"device_id": "LvzzVn7VNd",
"gateway_id": "UPv1x5PhQ6",
"device_cid": "2HdeoO4Kai",
"device_name": "PRULvLRMFU",
"direction": "inlet",
"install_address": "I5QwLRu9ab"
}
]
}
响应示例
{
"success": true,
"t": 1573441137,
"result": []
}
查询车道
功能描述
查询车道
接口地址
GET /v1.0/iot-02/third/parking/lanes
请求参数
参数名 |
类型 |
参数类型 |
说明 |
是否必需 |
str_parking_lot_ids |
String |
query |
车场 id 列表,使用,隔开 |
false |
返回参数
参数名 |
类型 |
说明 |
code |
Integer |
响应码(详情见错误码章节),成功时为空 |
success |
Boolean |
是否成功:(true:成功,false:失败) |
msg |
String |
请求失败的信息,成功时为空 |
t |
Long |
返回时间戳,13 位 |
result |
Object[] |
车道信息列表 |
result 参数说明
参数名 |
类型 |
说明 |
project_id |
String |
项目 id |
creator |
String |
创建者 |
modifier |
String |
修改者 |
gmt_create |
long |
创建时间(毫秒) |
gmt_modified |
long |
修改时间(毫秒) |
parking_lot_id |
String |
车场 id |
lane_id |
String |
车道 id |
device_name |
String |
设备名 |
direction |
String |
车道方向,(inlet:入口;outlet:出口;inlet_outlet:出入口) |
device_id |
String |
设备 id |
device_cid |
String |
设备 cid |
gateway_id |
String |
网关 id |
status |
int |
设备状态,(0:离线;1:在线) |
install_address |
String |
安装地址 |
请求示例
GET /v1.0/iot-02/third/parking/lanes?str_parking_lot_ids=2mWuaKSpq5
响应示例
{
"success": true,
"t": 1573441137,
"result": [
{
"project_id": "pEZTm3TMeX",
"creator": "qVp1Q86Uhb",
"modifier": "TOtfTbassZ",
"gmt_create": 802694,
"gmt_modified": 589041,
"parking_lot_id": "WRLLWw04Uw",
"lane_id": "5lSIhz8BWi",
"device_name": "eFAmMFRL7N",
"direction": "inlet",
"device_id": "Er8WHN9lqS",
"device_cid": "FZqZxJsyVf",
"gateway_id": "nPQX3Yjd2G",
"status": "0",
"install_address": "9bBgdptlOr"
}
]
}
删除车道
功能描述
删除车道
接口地址
DELETE /v1.0/iot-02/third/parking/lanes/batch
请求参数
参数名 |
类型 |
参数类型 |
说明 |
是否必需 |
lane_id_list |
String |
query |
车道 id 集合,使用,隔开 |
false |
返回参数
参数名 |
类型 |
说明 |
code |
Integer |
响应码(详情见错误码章节),成功时为空 |
success |
Boolean |
是否成功:(true:成功,false:失败) |
msg |
String |
请求失败的信息,成功时为空 |
t |
Long |
返回时间戳,13 位 |
result |
boolean |
成功、失败 |
请求示例
DELETE /v1.0/iot-02/third/parking/lanes/batch?lane_id_list=ryMVBGEldy
响应示例
{
"success": true,
"t": 1573441137,
"result": true
}