List
- GET
- /workspaces
- /:domain
- /projects
- /:project_name
- /repository
- /branches
Returns branches from the project repository.
Example:
CURLcurl -X GET "https://api.buddy.works/workspaces/:domain/projects/:project_name/repository/branches" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json" \
EXAMPLE RESPONSE{ "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 } ] }
STATUS200 OK
LIMITSX-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999