mirror of
https://github.com/apache/superset.git
synced 2026-08-04 13:02:41 +00:00
103 lines
3.0 KiB
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"
|
|
}
|
|
}
|
|
}
|