Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/get-charts-and-dashboards-count-associated-to-a-database.StatusCodes.json

103 lines
3.0 KiB
JSON

{
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"charts": {
"properties": {
"count": { "description": "Chart count", "type": "integer" },
"result": {
"description": "A list of dashboards",
"items": {
"properties": {
"id": { "type": "integer" },
"slice_name": { "type": "string" },
"viz_type": { "type": "string" }
},
"type": "object",
"title": "DatabaseRelatedChart"
},
"type": "array"
}
},
"type": "object",
"title": "DatabaseRelatedCharts"
},
"dashboards": {
"properties": {
"count": {
"description": "Dashboard count",
"type": "integer"
},
"result": {
"description": "A list of dashboards",
"items": {
"properties": {
"id": { "type": "integer" },
"json_metadata": { "type": "object" },
"slug": { "type": "string" },
"title": { "type": "string" }
},
"type": "object",
"title": "DatabaseRelatedDashboard"
},
"type": "array"
}
},
"type": "object",
"title": "DatabaseRelatedDashboards"
}
},
"type": "object",
"title": "DatabaseRelatedObjectsResponse"
},
"example": { "charts": {}, "dashboards": {} }
}
},
"description": "Query result"
},
"401": {
"content": {
"application/json": {
"schema": {
"properties": { "message": { "type": "string" } },
"type": "object"
},
"example": { "message": "Unauthorized: Authentication required" }
}
},
"description": "Unauthorized"
},
"404": {
"content": {
"application/json": {
"schema": {
"properties": { "message": { "type": "string" } },
"type": "object"
},
"example": {
"message": "Not found: The requested resource does not exist"
}
}
},
"description": "Not found"
},
"500": {
"content": {
"application/json": {
"schema": {
"properties": { "message": { "type": "string" } },
"type": "object"
},
"example": {
"message": "Internal server error: An unexpected error occurred"
}
}
},
"description": "Fatal error"
}
}
}