# 3D瓦片集

# 获取3D瓦片集列表

# 请求 URL:

  • http://host:port/heycloud/api/data/d3tileset/list

# 请求方式:

  • GET

# 请求 Header:

字段 类型 是否必选 说明
x-heycloud-admin-session String 通过 session 提供管理权限
x-heycloud-account-id String 帐号的唯一标识符,如为 * 则表示不过滤帐户

# 请求参数:

参数名称 类型 是否必须 默认值 说明
search String - 搜索的文本
offset Number 0 返回结果的偏移量,用于分页
limit Number 11 返回结果的数量,用于分页
sortField String createdAt 用于排序的字段
sortType String desc 排序的类型

# 请求示例

GET http://host:port/heycloud/api/data/d3tileset/list?search=&offset=0&limit=11

# 正确响应示例:

{
  "result": {...}
}

# 错误响应示例:

{
  "error": "ERROR",
  "message": "错误信息"
}

# 获取 d3tileset 的元数据

# 请求 URL:

  • http://host:port/heycloud/api/data/:d3tilesetId/meta

# 请求方式:

  • GET

# 请求 Header:

字段 类型 是否必选 说明
x-heycloud-admin-session String 通过 session 提供管理权限
x-heycloud-account-id String 帐号的唯一标识符,如为 * 则表示不过滤帐户

# 请求参数:

参数名称 类型 是否必须 默认值 说明
d3tilesetId String - 3D瓦片ID

# 请求示例

GET http://host:port/heycloud/api/data/d3tileset/xxxxx/meta

# 正确响应示例:

{
  "result": {
     "fields": [...],
     "indexes": [...]
  }
}

# 错误响应示例:

{
  "error": "ERROR",
  "message": "错误信息"
}

# 获取 tileset.json

# 请求 URL:

  • http://host:port/heycloud/api/data/d3tileset/:d3tilesetId/tileset.json

# 请求方式:

  • GET

# 请求 Header:

字段 类型 是否必选 说明
x-heycloud-admin-session String 通过 session 提供管理权限
x-heycloud-account-id String 帐号的唯一标识符,如为 * 则表示不过滤帐户

# 请求参数:

参数名称 类型 是否必须 默认值 说明
d3tilesetId String - 3D瓦片ID

# 请求示例

GET http://host:port/heycloud/api/data/d3tileset/xxxxx/tileset.json

# 正确响应示例:

{
  "result": {}
}

# 错误响应示例:

{
  "error": "ERROR",
  "message": "错误信息"
}

# 根据 uri 获取一个瓦片数据

# 请求 URL:

  • http://host:port/heycloud/api/data/d3tileset/:d3tilesetId/:uri

# 请求方式:

  • GET

# 请求 Header:

字段 类型 是否必选 说明
x-heycloud-admin-session String 通过 session 提供管理权限
x-heycloud-account-id String 帐号的唯一标识符,如为 * 则表示不过滤帐户

# 请求参数:

参数名称 类型 是否必须 默认值 说明
d3tilesetId String - 3D瓦片ID

# 请求示例

GET http://host:port/heycloud/api/data/d3tileset/xxxxx/:uri

# 正确响应示例:

{
  "result": {}
}

# 错误响应示例:

{
  "error": "ERROR",
  "message": "错误信息"
}

# 根据 uri 删除一个瓦片

# 请求 URL:

  • http://host:port/heycloud/api/data/d3tileset/:d3tilesetId/:uri/delete

# 请求方式:

  • POST

# 请求 Header:

字段 类型 是否必选 说明
x-heycloud-admin-session String 通过 session 提供管理权限
x-heycloud-account-id String 帐号的唯一标识符,如为 * 则表示不过滤帐户

# 请求参数:

参数名称 类型 是否必须 默认值 说明
d3tilesetId String - 3D瓦片ID

# 请求示例

POST http://host:port/heycloud/api/data/d3tileset/xxxxx/:uri/delete

# 正确响应示例:

{
  "result": {
 	  "id": "...",
    "deletedAt": "..."
  }
}

# 错误响应示例:

{
  "error": "ERROR",
  "message": "错误信息"
}

# 更新标题

# 请求 URL:

  • http://host:port/heycloud/api/data/d3tileset/:d3tilesetId/updateTitle

# 请求方式:

  • POST

# 请求 Header:

字段 类型 是否必选 说明
x-heycloud-admin-session String 通过 session 提供管理权限
x-heycloud-account-id String 帐号的唯一标识符,如为 * 则表示不过滤帐户

# 请求参数:

参数名称 类型 是否必须 默认值 说明
d3tilesetId String - 3D瓦片ID
title String - 更新的标题

# 请求示例

POST http://host:port/heycloud/api/data/d3tileset/xxxxx/updateTitle

{
  title: "xxx"
}

# 正确响应示例:

{
  "result": {
    "title": "..."
  }
}

# 错误响应示例:

{
  "error": "ERROR",
  "message": "错误信息"
}