curl --url http://localhost:8080/api/v2/environments/{environmentKey}/branches \
--header 'Accept: application/json'
{
"branches": [
{
"environmentKey": "<string>",
"key": "<string>",
"ref": "<string>",
"proposal": {
"url": "<string>",
"state": "PROPOSAL_STATE_UNKNOWN"
}
}
]
}Branches
List Branches
List all branches in an environment.
GET
/
api
/
v2
/
environments
/
{environmentKey}
/
branches
curl --url http://localhost:8080/api/v2/environments/{environmentKey}/branches \
--header 'Accept: application/json'
{
"branches": [
{
"environmentKey": "<string>",
"key": "<string>",
"ref": "<string>",
"proposal": {
"url": "<string>",
"state": "PROPOSAL_STATE_UNKNOWN"
}
}
]
}curl --url http://localhost:8080/api/v2/environments/{environmentKey}/branches \
--header 'Accept: application/json'
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
the environment identifier, e.g. 'production/branch'.
Response
200 - application/json
OK
The response message for listing branch environments for a given environment.
The list of branch environments.
Show child attributes
Show child attributes
Was this page helpful?