GetState
POST
/api/ToBackendGetStateGet project state for specified repository, branch and environment
Request Body
application/json
Response Body
application/json
curl -X POST "http://localhost:3000/api/ToBackendGetState" \ -H "Content-Type: application/json" \ -d '{ "info": { "name": "api/ToBackendGetState", "traceId": "string", "idempotencyKey": "string" }, "payload": { "projectId": "string", "repoId": "string", "branchId": "string", "envId": "string", "isFetch": true, "getErrors": true, "getRepo": true, "getRepoNodes": true, "getModels": true, "getDashboards": true, "getCharts": true, "getMetrics": true, "getReports": true } }'{
"info": {
"path": "/api/ToBackendGetState",
"method": "POST",
"mproveVersion": "string",
"duration": 0,
"status": "Ok",
"traceId": "string",
"error": null
},
"payload": {
"needValidate": true,
"structId": "string",
"validationErrorsTotal": 0,
"modelsTotal": 0,
"chartsTotal": 0,
"dashboardsTotal": 0,
"reportsTotal": 0,
"builderUrl": "string",
"validationErrors": [
{
"title": "string",
"message": "string",
"lines": [
{
"filePath": "string",
"fileName": "string",
"lineNumber": -9007199254740991
}
]
}
],
"modelItems": [
{
"modelId": "string",
"url": "string"
}
],
"chartItems": [
{
"chartId": "string",
"url": "string"
}
],
"dashboardItems": [
{
"dashboardId": "string",
"url": "string"
}
],
"reportItems": [
{
"reportId": "string",
"url": "string"
}
],
"metricItems": [
{
"metricId": "string",
"name": "string"
}
],
"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"
}
]
}
}
}