User Manual

ブランチ - 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}

パラメーター

projectId: number

ブランチのリストを取得するプロジェクトのID

レスポンススキーマ

Status: 200
{
    "result": [    {
      "id": string,
      "projectId": int,
      "name": "Branch Name",
      "createdAt": data,
      "closed": bool,
      "latestCheckpointId": string,
      "user": {
        "id": int,
        "fullName": string,
        "username": string
      }
    },, ...],
    "pagination": {
        "hasMore": bool
    }
}

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

エラー

401

Unauthorized

403

Forbidden

404

Project not found

429

Too many requests

レート制限

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

This site is translated by the community. If you want to get involved visit this page