应用:获取主应用
路由 URL
GET https://playcanvas.com/api/projects/:projectId/app
说明
获取项目的主应用。
示例
curl -H "Authorization: Bearer {accessToken}" https://playcanvas.com/api/projects/{projectId}/app
参数
| 名称 | 类型 | 说明 |
|---|---|---|
projectId | number | 项目 ID。 |
响应结构
Status: 200
{
"id": int,
"project_id": int,
"owner_id": int,
"name": string,
"description": string,
"version": string,
"release_notes": string,
"thumbnails": {
"s": string,
"m": string,
"l": string,
"xl": string
},
"size": int,
"views": int,
"completed_at": date,
"created_at": date,
"modified_at": date,
"url": string
}
错误
| 状态码 | 说明 |
|---|---|
| 401 | 未通过身份验证 |
| 403 | 禁止访问 |
| 404 | 未找到项目 |
| 404 | 项目尚未设置主应用 |
| 404 | 未找到应用 |
| 429 | 请求过多 |
请求限流
此路由采用普通限流。