CreateBranch
CreateBranch
POST
/api/ToBackendCreateBranchCreate a new branch from an existing branch
Request Body
application/json
Response Body
application/json
curl -X POST "http://localhost:3000/api/ToBackendCreateBranch" \ -H "Content-Type: application/json" \ -d '{ "info": { "name": "api/ToBackendCreateBranch", "traceId": "string", "idempotencyKey": "string" }, "payload": { "projectId": "string", "newBranchId": "string", "fromBranchId": "string", "repoId": "string" } }'{
"info": {
"path": "/api/ToBackendCreateBranch",
"method": "POST",
"mproveVersion": "string",
"duration": 0,
"status": "Ok",
"traceId": "string",
"error": null
},
"payload": {}
}DeleteBranch
POST
/api/ToBackendDeleteBranchDelete a branch
Request Body
application/json
Response Body
application/json
curl -X POST "http://localhost:3000/api/ToBackendDeleteBranch" \ -H "Content-Type: application/json" \ -d '{ "info": { "name": "api/ToBackendDeleteBranch", "traceId": "string", "idempotencyKey": "string" }, "payload": { "projectId": "string", "repoId": "string", "branchId": "string" } }'{
"info": {
"path": "/api/ToBackendDeleteBranch",
"method": "POST",
"mproveVersion": "string",
"duration": 0,
"status": "Ok",
"traceId": "string",
"error": null
},
"payload": {}
}GetBranchesList
POST
/api/ToBackendGetBranchesListGet branches available to the user
Request Body
application/json
Response Body
application/json
curl -X POST "http://localhost:3000/api/ToBackendGetBranchesList" \ -H "Content-Type: application/json" \ -d '{ "info": { "name": "api/ToBackendGetBranchesList", "traceId": "string", "idempotencyKey": "string" }, "payload": { "projectId": "string" } }'{
"info": {
"path": "/api/ToBackendGetBranchesList",
"method": "POST",
"mproveVersion": "string",
"duration": 0,
"status": "Ok",
"traceId": "string",
"error": null
},
"payload": {
"branchesList": [
{
"repoId": "string",
"repoType": "production",
"branchId": "string"
}
],
"sessionsList": [
{
"sessionId": "string",
"opencodeSessionId": "string",
"type": "Explorer",
"provider": "string",
"agent": "string",
"model": "string",
"lastMessageProviderModel": "string",
"lastMessageVariant": "string",
"status": "string",
"archiveReason": "User",
"pauseReason": "User",
"repoId": "string",
"branchId": "string",
"initialBranch": "string",
"envId": "string",
"initialCommit": "string",
"createdTs": -9007199254740991,
"lastActivityTs": -9007199254740991,
"firstMessage": "string",
"title": "string",
"useCodex": true,
"closedExplorerTabIds": [
"string"
]
}
],
"userMember": {
"projectId": "string",
"memberId": "string",
"email": "string",
"alias": "string",
"firstName": "string",
"lastName": "string",
"fullName": "string",
"avatarSmall": "string",
"roles": [
"string"
],
"isAdmin": true,
"isEditor": true,
"isExplorer": true,
"serverTs": -9007199254740991
}
}
}IsBranchExist
POST
/api/ToBackendIsBranchExistCheck whether a branch exists in a project repo
Request Body
application/json
Response Body
application/json
curl -X POST "http://localhost:3000/api/ToBackendIsBranchExist" \ -H "Content-Type: application/json" \ -d '{ "info": { "name": "api/ToBackendIsBranchExist", "traceId": "string", "idempotencyKey": "string" }, "payload": { "projectId": "string", "branchId": "string", "repoId": "string" } }'{
"info": {
"path": "/api/ToBackendIsBranchExist",
"method": "POST",
"mproveVersion": "string",
"duration": 0,
"status": "Ok",
"traceId": "string",
"error": null
},
"payload": {
"isExist": true
}
}