List
Returns branches from the project repository.
Required scopes: WORKSPACE
, REPOSITORY_READ
Resource URL
GET /workspaces/:domain/projects/:project_name/repository/branches
URL Parameters
Name | Type | Description |
---|---|---|
domain Required | String | The workspace domain. |
project_name Required | String | The name ID of the project. |
Example
Request
GET https://api.buddy.works/workspaces/buddy/projects/company-website/repository/branches
Sample Response
HTTP
Status: 200 OK
X-Rate-Limit-Limit: 1
X-Rate-Limit-Remaining: 999
JSON
{
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/repository/branches",
"html_url": "https://app.buddy.works/buddy/company-website/repository/branches",
"branches": [
{
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/repository/branches/master",
"html_url": "https://app.buddy.works/buddy/company-website/repository/branch/master",
"name": "master",
"default": true
}
]
}
Last modified on April 26, 2022