title | linkTitle | description |
---|---|---|
Repo |
Repo |
Learn how to list all repos in the system.
|
GET /api/v1/admin/repos
COMING SOON!
Status Code | Description |
---|---|
200 |
indicates the request has succeeded |
401 |
indicates the user does not have proper permissions |
{{% alert color="warning" %}} This section assumes you already know how to authenticate to the API.
To authenticate to the API, please review the authentication documentation. {{% /alert %}}
curl \
-X GET \
-H "Authorization: Bearer <token>" \
"http://127.0.0.1:8080/api/v1/admin/repos"
[
{
"id": 1,
"user_id": 1,
"org": "github",
"name": "octocat",
"full_name": "github/octocat",
"link": "https://github.com/github/octocat",
"clone": "https://github.com/github/octocat.git",
"branch": "main",
"timeout": 60,
"visibility": "public",
"private": false,
"trusted": true,
"active": true,
"allow_pull": true,
"allow_push": true,
"allow_deploy": false,
"allow_tag": false,
"allow_comment": false
},
{
"id": 2,
"user_id": 2,
"org": "github",
"name": "octokitty",
"full_name": "github/octokitty",
"link": "https://github.com/github/octokitty",
"clone": "https://github.com/github/octokitty.git",
"branch": "main",
"timeout": 60,
"visibility": "public",
"private": false,
"trusted": true,
"active": true,
"allow_pull": true,
"allow_push": true,
"allow_deploy": false,
"allow_tag": false,
"allow_comment": false
}
]