# 获取文件信息

GET https://api.bimface.com/bdfs/data/v1/projects/{projectId}/fileItems/meta

# 说明

根据文件项ID或文件项所在路径获取文件的详细信息,此时获取的是该文件项的当前版本的信息。

# 参数

Authorization * Bearer {accessToken} string
*为必填项
# Path
projectId * 项目ID string
*为必填项
# Query
fileItemId* 文件项ID(fileItemId和path,必须二选一填入) string
path* 文件项所在路径,使用URL编码(UTF-8),最多256个字符(fileItemId和path,必须二选一填入) string
withItemSource 是否携带fileItemSource信息,默认为false boolean

*为必填项

# 响应

HTTP代码 说明 类型
200 OK RestResponse«FileItemDTO»
401 Unauthorized -
403 Forbidden -
404 Not Found -
# 200响应参数
RestResponse«FileItemDTO»
名称 说明 类型
code 状态代码 string
data 返回数据 FileItemDTO
appKey appKey string
createTime 文件创建时间 string
current 是否为当前版本 boolean
fileId 文件ID string
fileItemId 文件项ID string
fileItemName 文件项名称 string
folder 是否为文件夹 boolean
id 文件ID string
length 文件大小 int64
md5 md5 string
name 文件名称 string
originalCreateTime 文件项创建时间 string
parentId 父文件夹ID string
physicalIndex 对象存储索引 string
projectId 项目ID string
status 文件状态 string
storeId 内部存储唯一标识 string
suffix 文件后缀 string
updateTime 文件更新时间 string
uploadMode 上传模式 string
version 文件版本号 int32
message 提示信息 string

# 消耗

  • application/json

# 生成

  • application/json
  • */*

# HTTP请求示例

# 请求 path
https://api.bimface.com/bdfs/data/v1/projects/10000000006016/fileItems/meta?fileItemId=1938888813662976
# 请求 header
"Authorization: Bearer cn-e9725999-0b36-4c0e-bdca-38ea88888888"

# HTTP响应示例

# 响应 200
{
  "code" : "success",
  "data" : {
    "appKey" : "odatvZYUSAWMbdUjTU8HoZXB9tFt6123",
    "createTime" : "2023-02-23 15:13:39",
    "id": "1938888813664301",
    "fileId": "1938888813664301",
    "fileItemId" : "1938888813662976",
    "name": "示例文件.rvt",
    "fileItemName": "Revit示例模型.rvt",
    "suffix": "rvt",
    "length": 345345345,
    "projectId" : "10000000006016",
    "parentId" : "10000022200497",
    "folder" : false,
    "storeId": "234234233234",
    "version": 3,
    "status" : "success",
    "uploadMode" : "GENERAL",
    "md5" : "sdfhskbvnksdiuewriusbndskudf",    
    "physicalIndex" : "a72eaf22f4214a6384429f78b690c983",
    "updateTime" : "2023-02-23 15:13:39",
    "current": true,
    "originalCreateTime": "2023-02-23 15:13:27"
  },
  "message" : "success"
}