Assets - List assets
ルートURL
GET https://playcanvas.com/api/projects/:projectId/assets?branchId=:branchId
説明
特定のブランチ向けのプロジェクト内で、すべてのアセットの詳細を取得します。
例
curl -H "Authorization: Bearer {accessToken}" "https://playcanvas.com/api/projects/{projectId}/assets?branchId={branchId}"
HTTP Request
GET https://playcanvas.com/api/projects/{projectId}/assets?branchId={branchId}
Authorization: Bearer {accessToken}
パラメータ
projectId: number
The id of the project to list assets from
branchId: string
The id of the branch
応答のスキーマ
Status: 200
{
"result": [{
"id": int,
"modifiedAt": date,
"createdAt": date,
"state": "ready" | "processing" | "error",
"name": string,
"type": string,
"scope":{
"type": string,
"id": int
},
"source": bool,
"sourceId": bool,
"tags": list of strings,
"preload": bool,
"file": {
"hash": string,
"filename": string,
"size": int,
"url": string
},
"parent": int
}, ...],
"pagination": {
"skip": int,
"limit": int,
"total": int,
}
}
エラー
401
非認証
403
許可されていません
404
プロジェクトが見つかりません
429
リクエストが多すぎます
レート制限
このルートはnormalなレート制限を使用します。