getBranchList
get branch list
Path Parameters
- owner required
The owner of the repository, generally called "username". The name is not case sensitive.
- repo required
repository name, the name is not case sensitive
Query Parameters
- per_page
page size
- page
page num
Header Parameters
- Authorization required
Oauth2 token or private token (needs to start with Bearer plus a space)
Responses
- 200
- 404
- responseBody
success
404 not found
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- name string
Branch name, cannot contain wildcard characters
commit object required
commit ID
sha stringcommit sha value
- protected boolean
is protected branch or not
- ]
[
{
"name": "string",
"commit": {
"sha": "string"
},
"protected": true
}
]
Loading...