获取项目分支列表(无分页)
GET
/api/v1/{owner}/{repo}/branches/all.json最后修改时间: 1 年前
请求参数
Path 参数
owner
string
必需
repo
string
必需
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
array of:
name
string
分支名称
http_url
string
http clone地址
zip_url
string
zip文件下载地址
tar_url
string
tar文件下载地址
示例成功示例
[
{
"name": "main",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/main.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/main.tar.gz"
},
{
"name": "new_main",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/new_main.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/new_main.tar.gz"
},
{
"name": "new_main_1",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/new_main_1.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/new_main_1.tar.gz"
},
{
"name": "stable/0.90.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F0.90.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F0.90.x.tar.gz"
},
{
"name": "stable/0.91.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F0.91.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F0.91.x.tar.gz"
},
{
"name": "stable/0.95.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F0.95.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F0.95.x.tar.gz"
},
{
"name": "stable/0.96.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F0.96.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F0.96.x.tar.gz"
},
{
"name": "stable/1.0.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.0.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.0.x.tar.gz"
},
{
"name": "stable/1.1.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.1.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.1.x.tar.gz"
},
{
"name": "stable/1.10.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.10.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.10.x.tar.gz"
},
{
"name": "stable/1.11.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.11.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.11.x.tar.gz"
},
{
"name": "stable/1.2.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.2.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.2.x.tar.gz"
},
{
"name": "stable/1.3.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.3.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.3.x.tar.gz"
},
{
"name": "stable/1.4.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.4.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.4.x.tar.gz"
},
{
"name": "stable/1.5.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.5.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.5.x.tar.gz"
},
{
"name": "stable/1.6.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.6.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.6.x.tar.gz"
},
{
"name": "stable/1.7.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.7.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.7.x.tar.gz"
},
{
"name": "stable/1.8.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.8.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.8.x.tar.gz"
},
{
"name": "stable/1.9.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.9.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F1.9.x.tar.gz"
},
{
"name": "stable/2.0.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F2.0.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F2.0.x.tar.gz"
},
{
"name": "stable/2.1.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F2.1.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F2.1.x.tar.gz"
},
{
"name": "stable/2.2.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F2.2.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F2.2.x.tar.gz"
},
{
"name": "stable/3.0.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F3.0.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F3.0.x.tar.gz"
},
{
"name": "stable/3.1.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F3.1.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F3.1.x.tar.gz"
},
{
"name": "stable/3.2.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F3.2.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F3.2.x.tar.gz"
},
{
"name": "stable/4.0.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F4.0.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F4.0.x.tar.gz"
},
{
"name": "stable/4.1.x",
"http_url": "https://testgitea2.trustie.net/yystopf123/django.git",
"zip_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F4.1.x.zip",
"tar_url": "https://testforgeplus.trustie.net/api/yystopf123/django/archive/stable%2F4.1.x.tar.gz"
}
]
最后修改时间: 1 年前