メインコンテンツまでスキップ

ブランチ - List branches

ルートURL​

GET https://playcanvas.com/api/projects/:projectId/branches

説明​

プロジェクトの全てのオープンなブランチのリストを取得します。

例​

curl -H "Authorization: Bearer {accessToken}" "https://playcanvas.com/api/projects/{projectId}/branches"

HTTP リクエスト

GET https://playcanvas.com/api/projects/{projectId}/branches
Authorization: Bearer {accessToken}

パラメーター​

名前タイプ説明
projectIdnumberThe id of the project.

レスポンススキーマ​

ステータス:200
{
"result": [ {
"id": string,
"projectId": int,
"name": "Branch Name",
"createdAt": date,
"closed": bool,
"latestCheckpointId": string,
"user": {
"id": int,
"fullName": string,
"username": string
}
},, ...],
"pagination": {
"hasMore": bool
}
}

このエンドポイントは、若干異なるページネーション方法を使用しています。レスポンスが hasMore: true の場合、追加の結果が利用可能です。最後に受信したブランチIDとともに ?skip=branchId クエリパラメーターを使用して、アルファベット順により多くのブランチを受信します。

エラー​

コード説明
401Unauthorized
403Forbidden
404Project not found
429Too many requests

レート制限​

このルートは通常のレート制限を使用します。