Branches
This endpoint is used for the creation and deletion of branches.
API URL - https://api.moropo.com/branches
Available actions
Create Branch
Delete Branch
Example - Creating a Branch
Note this request uses POST
to inform the API that a branch is being created
curl -X 'POST' \
'https://api.moropo.com/branches' \
-H 'accept: */*' \
-H 'x-app-api-key: MOROPO_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"branchName": "BRANCH_NAME"
}'
Where;
MOROPO_API_KEY
is the API key for the target app, found in your Moropo settings.BRANCH_NAME
is the name of the target branch to download tests from.
Expected Response
Successfully created branch BRANCH_NAME
Example - Deleting a Branch
Note this request uses DELETE
to inform the API that a branch is being deleted
curl -X 'DELETE' \
'https://api.moropo.com/branches' \
-H 'accept: */*' \
-H 'x-app-api-key: MOROPO_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"branchName": "BRANCH_NAME"
}'
Where;
MOROPO_API_KEY
is the API key for the target app, found in your Moropo settings.BRANCH_NAME
is the name of the target branch to download tests from.
Expected Response
Successfully deleted branch BRANCH_NAME
Last updated
Was this helpful?