当VersionId有效且存在时,对Version / GetDownloads进行2和/或3条腿身份验证请求将返回400。
当尝试对版本的下载终结点(https://forge.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-versions-version_id-downloads-GET/)进行http调用时,响应返回:
{
"jsonapi": {
"version": "1.0"
},
"errors": [
{
"id": "a306d506-e374-4734-a68e-86c998fc7a5a",
"status": "400",
"code": "BAD_INPUT",
"title": "One or more input values in the request were bad",
"detail": "Request cannot be handled."
}
]
}
如果相应项目的版本ID不存在,则可以,但是请求版本的下载格式(https://forge.autodesk.com/en/docs/data/v2/reference/http/projects-project_id-versions-version_id-downloadFormats-GET/)返回200
响应,
尽管该版本没有任何下载格式:
{
"jsonapi": {
"version": "1.0"
},
"links": {
"self": {
"href": "https://developer.api.autodesk.com/data/v1/projects/{PROJECT_ID}/versions/{URN_VERSION_ID}/downloadFormats"
}
},
"data": {
"type": "downloadFormats",
"id": {URN_VERSION_ID},
"attributes": {
"formats": []
}
}
}
我正在测试的文件是通过UI上传到BIM360的pdf。我希望在两个端点上至少得到一个200
响应。另外,我非常不明白为什么downloadFormats
端点不返回任何格式。