GET /console/lab/data_reports
NO
Key | Type | Description | Match | Example |
---|---|---|---|---|
st |
integer: specific topic ID | 用關聯小議題過濾數據分析報告 | exact | 1 2 |
{
rows: [
{
id
status
slug
type
image
title
st: {
id
title
image
index
}
figure_data_set_type
figure_data_set
figures: [
{
id
status
slug
type
image
title
}
]
}
...
]
totalRowCount
}
如果
figure_data_set_type
是LAB_Bill_Data_Set
的話⋯
figure_data_set: {
id
name
version_no
slug
term_index
start_date
end_date
st: {
id
title
}
act: {
id
title
}
act_dir: {
id
name
}
}
如果
figure_data_set_type
是LAB_Statement_Data_Set
的話⋯
figure_data_set: {
id
name
version_no
slug
term_index
state_date
end_date
st: {
id
title
}
st_question: {
id
question
}
}
GET /console/lab/data_report/:id
NO
{
id
status
slug
type
image
title
st_id
figure_data_set_type
figure_data_set_id
figures: [
{
id
index
}
...
]
}
POST /console/lab/data_report
NO
Key | Type | Required | Description |
---|---|---|---|
status |
string | 🌕 | 狀態 |
slug |
string | 🌑 | 短網址 |
type |
string | 🌕 | 類別 |
image |
string | 🌑 | 圖像的路徑 |
title |
integer | 🌕 | 標題 |
st_id |
integer | 🌕 | 關聯小議題 ID |
figure_data_set_type |
string | 🌕 | 資料源類型 |
figure_data_set_id |
integer | 🌕 | 資料源 ID |
figures [1] |
array of objects | 🌑 | 相關圖表 |
[1]
Key | Type | Required | Description |
---|---|---|---|
id |
Integer | 🌕 | 圖表 ID |
index |
Integer | 🌕 | 排序 |
{
"status": "active",
"slug": "a/b/c",
"type": "type",
"image": "path/image.png",
"title": "數據分析報告",
"st_id": 1,
"figure_data_set_type": "LAB_Bill_Data_Set",
"figure_data_set_id": 2,
"figures": [
{
"id": 1,
"index": 1
},
{
"id": 2,
"index": 2
}
]
}
Returns the newly created data report
PATCH /console/lab/data_report/:id
NO
DELETE /console/lab/data_report/:id
NO
204 No Content