代码托管 CODEARTS REPO-示例3:查询某仓库对应的分支:步骤2:查询分支列表

时间:2024-09-02 17:20:09

步骤2:查询分支列表

  • 请求示例:
    GET  https://codehub-ext.cn-north-7.mytestcloud.com/v1/repositories/522140/branches
  • 响应示例:
    {
     "result": {
      "total": 1,
      "branches": [
       {
        "name": "master",
        "is_protected": false
       }
      ]
     },
     "status": "success"
    }
support.huaweicloud.com/api-codeartsrepo/codeartsrepo_05_0024.html