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

时间:2023-11-01 16:20:20

步骤2:查询分支列表

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