get-state
Get project state: models, dashboards, charts, reports, metrics, validation errors, and repo info
Request Body
application/json
Response Body
application/json
Input
{
"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
}Output
{
"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": 0
}
]
}
],
"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": 0
}
],
"nodes": [
{
"id": "string",
"isFolder": true,
"name": "string",
"fileId": "string",
"children": [
{}
]
}
]
}
}