Get Branch
POST {{baseUrl}}
Checks if branch branchName exists in repository repositoryName. If the branch exists, commitID is updated in the environment. Else, the next request is set to Create Branch.
Request Body
{"branchName"=>"{{branchName}}", "repositoryName"=>"{{repositoryName}}"}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
X-Amz-Target | string | ||
x-mock-response-name | string |
RESPONSES
status: OK
{"branch":{"branchName":"{{branchName}}","commitId":"mockCommitId"}}