GET /console/comp/timeline_events
YES
Key | Type | Description | Match | Example |
---|---|---|---|---|
page |
integer | 頁次 | exact | 1 |
all |
- | 要求所有大事紀的清單 | - | - |
date |
timestamp | 用日期來過濾大事紀事件清單 | exact | 1498838400000 |
type |
string | 用類型來過濾大事紀事件清單 | exact | general_update data_reports |
q |
string | 用關鍵字對標語(tagline)、標題(title)、內容(content)來過濾大事紀事件清單 | partial | 建 建國 |
{
rows: [
{
status
slug
date
type
image
tagline
title
content
link
data
}
...
]
totalRowCount
paging: {
pages
pageSize
previous
next
page
}
}
GET /console/comp/timeline_events/:id
NO
{
id
status
slug
date
type
image
tagline
title
content
link
data
}
POST /console/comp/timeline_events
NO
Key | Type | Required | Description |
---|---|---|---|
status |
string | 🌕 | 狀態 |
slug |
string | 🌕 | 短網址 |
date |
timestamp | 🌕 | 日期 |
type |
string | 🌕 | 類型 |
image |
string | 🌑 | 圖像 |
tagline |
string | 🌑 | 標語 |
title |
string | 🌕 | 標題 |
content |
string | 🌑 | 內容 |
link |
string | 🌑 | 連結 |
data |
object | 🌑 | 與此事件相關之資料 |
{
"status": "active",
"slug": "bill-comp/recall/xxxx",
"date": 1498838400000,
"type": "基本",
"image": "path/image.png",
"tagline": "體育選手只能相忍為國?",
"title": "打開黑箱協會的第一步",
"content": "關於台灣獨立與台灣建國",
"link": "https://g0v.tw",
"data": **JSON**
}
Returns the newly created timeline event
PATCH /console/comp/timeline_events/:id
NO
DELETE /console/lab/timeline_events/:id
NO
204 No Content