帮助中心
帮助中心主页
HTTP API
Roboview
Modbus API
常见问题
上传场景

请求

  • 功能:上传RDSCore的场景资源包
  • 方法:POST
  • 接口说明:/uploadScene
json
POST "http://host:8088/uploadScene"
1

请求数据

请求示例

响应

响应数据

NameTypeDescription
codeintAPI 错误码,详情见API错误码
msgstringAPI 错误码信息
create_onintAPI 上传时间戳

响应数据示例

Responses Code 200

请求成功
json
{
    "code": 0,
    "create_on": "2022-03-24T19:21:59.448Z",
    "msg": "ok"
}
1
2
3
4
5

Responses Code 400

当前有运单执行,无法上传场景
json
{
    "code": 50003,
    "create_on": "2022-05-25T19:31:51.386Z",
    "msg": "cannot upload scene now"
}
1
2
3
4
5

场景文件 rds.scene 缺失
json
{
    "code": 50003,
    "create_on": "2022-05-25T19:31:51.386Z",
    "msg": "scene.zip error, don't contain rds.scene"
}
1
2
3
4
5

临时文件保存失败
json
{
    "code": 50003,
    "create_on": "2022-05-25T19:31:51.386Z",
    "msg": "save tmp scene file error"
}
1
2
3
4
5

临时文件读取失败
json
{
    "code": 50003,
    "create_on": "2022-05-25T19:31:51.386Z",
    "msg": "read tmp scene file error"
}
1
2
3
4
5

Responses Code 406

场景数据非法
json
{
    "code": 50003,
    "create_on": "2022-05-25T19:30:36.345Z",
    "msg": "scene data wrong"
}
1
2
3
4
5
最近更新 2023/02/11
文章内容

请求

请求数据

请求示例

响应

响应数据

响应数据示例

Responses Code 200

Responses Code 400

Responses Code 406