GetRepo
POST
/api/ToBackendGetRepoGet repo catalog for a branch
Request Body
application/json
Response Body
application/json
curl -X POST "http://localhost:3000/api/ToBackendGetRepo" \ -H "Content-Type: application/json" \ -d '{ "info": { "name": "api/ToBackendGetRepo", "traceId": "string", "idempotencyKey": "string" }, "payload": { "projectId": "string", "repoId": "string", "branchId": "string", "envId": "string", "isFetch": true } }'{
"info": {
"path": "/api/ToBackendGetRepo",
"method": "POST",
"mproveVersion": "string",
"duration": 0,
"status": "Ok",
"traceId": "string",
"error": null
},
"payload": {
"needValidate": true,
"struct": {
"projectId": "string",
"structId": "string",
"errors": [
{
"title": "string",
"message": "string",
"lines": [
{
"fileId": "string",
"fileName": "string",
"lineNumber": -9007199254740991
}
]
}
],
"metrics": [
{
"modelId": "string",
"modelType": "Store",
"connectionType": "PostgreSQL",
"fieldId": "string",
"fieldClass": "dimension",
"fieldResult": "day_of_week",
"timeFieldId": "string",
"structId": "string",
"filePath": "string",
"fieldLineNum": -9007199254740991,
"type": "Model",
"metricId": "string",
"topNode": "string",
"label": "string",
"topLabel": "string",
"partNodeLabel": "string",
"partFieldLabel": "string",
"partLabel": "string",
"timeNodeLabel": "string",
"timeFieldLabel": "string",
"timeLabel": "string",
"description": "string",
"formatNumber": "string",
"currencyPrefix": "string",
"currencySuffix": "string",
"serverTs": -9007199254740991,
"hasAccessToModel": true
}
],
"presets": [
{
"presetId": "string",
"label": "string",
"path": "string",
"parsedContent": null
}
],
"mproveConfig": {
"mproveDirValue": "string",
"caseSensitiveStringFilters": true,
"weekStart": "Sunday",
"allowTimezones": true,
"defaultTimezone": "string",
"formatNumber": "string",
"currencyPrefix": "string",
"currencySuffix": "string",
"thousandsSeparator": "string"
},
"mproveVersion": "string",
"serverTs": -9007199254740991
},
"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
},
"user": {
"userId": "string",
"email": "string",
"alias": "string",
"firstName": "string",
"lastName": "string",
"isEmailVerified": true,
"ui": {
"modelTreeLevels": "Flat",
"timezone": "string",
"timeSpec": "timestamps",
"timeRangeFraction": {
"controls": [
{
"options": [
{
"value": "string",
"label": "string"
}
],
"value": null,
"label": "string",
"required": "string",
"name": "string",
"controlClass": "list_input",
"isMetricsDate": true
}
],
"brick": "string",
"parentBrick": "string",
"operator": "Or",
"logicGroup": "OR",
"type": "StoreFraction",
"storeFractionSubTypeOptions": [
{
"logicGroup": "OR",
"typeValue": "string",
"value": "string",
"label": "string"
}
],
"storeFractionSubType": "string",
"storeFractionSubTypeLabel": "string",
"storeFractionLogicGroupWithSubType": "string",
"meta": null,
"storeResult": "string",
"stringValue": "string",
"numberValue1": 0,
"numberValue2": 0,
"numberValues": "string",
"numberBetweenOption": "Inclusive",
"yesnoValue": "Yes",
"dayOfWeekValue": "Monday",
"dayOfWeekIndexValues": "string",
"monthNameValue": "January",
"quarterOfYearValue": "q1",
"tsDateYear": 0,
"tsDateQuarter": 0,
"tsDateMonth": 0,
"tsDateDay": 0,
"tsDateHour": 0,
"tsDateMinute": 0,
"tsDateToYear": 0,
"tsDateToQuarter": 0,
"tsDateToMonth": 0,
"tsDateToDay": 0,
"tsDateToHour": 0,
"tsDateToMinute": 0,
"tsForValue": 0,
"tsForUnit": "seconds",
"tsLastValue": 0,
"tsLastUnit": "seconds",
"tsLastCompleteOption": "CompleteWithCurrent",
"tsNextValue": 0,
"tsNextUnit": "seconds",
"tsMoment": null,
"tsMomentType": "Literal",
"tsMomentUnit": "second",
"tsTimestampValue": "string",
"tsMomentAgoFromNowQuantity": 0,
"tsFromMoment": null,
"tsFromMomentType": "Literal",
"tsFromMomentUnit": "second",
"tsFromTimestampValue": "string",
"tsFromMomentAgoFromNowQuantity": 0,
"tsToMoment": null,
"tsToMomentType": "Literal",
"tsToMomentUnit": "second",
"tsToTimestampValue": "string",
"tsToMomentAgoFromNowQuantity": 0
},
"projectModelLinks": [
{
"projectId": "string",
"modelId": "string",
"navTs": -9007199254740991
}
],
"projectChartLinks": [
{
"projectId": "string",
"chartId": "string",
"navTs": -9007199254740991
}
],
"projectDashboardLinks": [
{
"projectId": "string",
"dashboardId": "string",
"navTs": -9007199254740991
}
],
"projectExplorerSessionLinks": [
{
"projectId": "string",
"sessionId": "string",
"repoId": "string",
"branchId": "string",
"envId": "string",
"tabId": "string",
"navTs": -9007199254740991
}
],
"projectReportLinks": [
{
"projectId": "string",
"reportId": "string",
"navTs": -9007199254740991
}
],
"projectSelectedGivenLinks": [
{
"projectId": "string",
"givens": [
{
"givenId": "string",
"type": "String",
"isMultiple": true,
"values": [
"string"
]
}
],
"navTs": -9007199254740991
}
],
"permissionsAutoAcceptSessionIds": [
"string"
],
"newSessionPermissionsAutoAccept": true,
"newSessionExplorerProviderModel": "string",
"newSessionEditorProviderModel": "string",
"newSessionEditorVariant": "string",
"newSessionUseCodex": true
},
"apiKeyPrefix": "string",
"isCodexAuthSet": true,
"codexAuthUpdateTs": -9007199254740991,
"codexAuthExpiresTs": -9007199254740991,
"serverTs": -9007199254740991
},
"repo": {
"orgId": "string",
"projectId": "string",
"repoId": "string",
"currentBranchId": "string",
"repoStatus": "NeedCommit",
"conflicts": [
{
"fileId": "string",
"fileName": "string",
"lineNumber": -9007199254740991
}
],
"nodes": [
{
"id": "string",
"isFolder": true,
"name": "string",
"fileId": "string",
"children": [
{
"id": "string",
"isFolder": true,
"name": "string",
"fileId": "string",
"children": []
}
]
}
],
"changesToCommit": [
{
"fileName": "string",
"fileId": "string",
"parentPath": "string",
"status": "New",
"content": "string"
}
],
"changesToPush": [
{
"fileName": "string",
"fileId": "string",
"parentPath": "string",
"status": "New",
"content": "string"
}
]
}
}
}