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

KeyDatatypeRequiredDescription
Content-Typestring
X-Amz-Targetstring
x-mock-response-namestring

RESPONSES

status: OK

{"branch":{"branchName":"{{branchName}}","commitId":"mockCommitId"}}