GET /console/lab/statement_data_sets
NO
Key | Type | Description | Match | Example |
---|---|---|---|---|
name |
string | 用名稱過濾發言資料集 | partial | 罷 罷免 |
term |
integer: term index | 用屆期過濾發言資料集 | exact | 8 9 |
st |
integer: specific topic ID | 用關聯小議題過濾發言資料集 | exact | 1 2 |
st_question |
integer: specific topic question ID | 用爭點過濾發言資料集 | exact | 1 2 |
{
rows: [
{
id
name
version_no
slug
term_index
start_date
end_date
st: {
id
title
image
index
}
st_question: {
id
question
}
}
...
]
totalRowCount
}
GET /console/lab/statement_data_sets/:id
NO
{
id
name
version_no
slug
term_index
start_date
end_date
st_id
st_question_id
should_have_spoken_committees: [
name
...
]
should_have_spoken_sessions: [
index
...
]
}
POST /console/lab/statement_data_set
NO
Key | Type | Required | Description |
---|---|---|---|
name |
string | 🌕 | 名稱 |
version_no |
string | 🌕 | 版本號 |
slug |
string | 🌑 | 短網址 |
term_index |
integer | 🌕 | 屆期 |
start_date |
timestamp | 🌕 | 起始日 |
end_date |
timestamp | 🌕 | 終止日 |
st_id |
integer | 🌕 | 關聯小議題 ID |
st_question_id |
integer | 🌕 | 爭點 ID |
should_have_spoken_committees |
array of strings | 🌕 | 應發言委員會名稱列表 |
should_have_spoken_sessions |
array of integers | 🌕 | 應發言屆期 index |
{
"name": "罷免x第九屆",
"version_no": "1.0.0",
"slug": "bill-comp/recall/xxxx",
"term_index": 9,
"start_date": "2016-02-01 00:00:00",
"end_date": "2020-01-31 00:00:00",
"st_id": 1,
"st_question_id": 1,
"should_have_spoken_committees": ["交通委員會", "內政委員會"],
"should_have_spoken_sessions": [8, 9]
}
Returns the newly created statement data set
PATCH /console/lab/statement_data_set/:id
NO
DELETE /console/lab/statement_data_set/:id
NO
204 No Content