GET /console/park/events
NO
YES
{
rows: [
{
id
status
slug
type
category
image
tagline
title
before_title
after_title
description
start_date
end_date
is_all_day
location: {}
repeat_rules: {}
next_actions: {}
documentation: {}
related_content: {}
data: {}
collaborators: [
{
entity_type,
entity: {
id
... // entity data
}
type
index
status
data: {}
}
...
]
}
...
]
totalRowCount
paging: {
pages
pageSize
previous
next
page
}
}
GET /console/park/events/:id
NO
NO
{
id
status
slug
type
category
image
tagline
title
before_title
after_title
description
start_date
end_date
is_all_day
location: {}
repeat_rules: {}
next_actions: {}
documentation: {}
related_content: {}
data: {}
collaborators: [
{
entity_type,
entity: {
id
... // entity data
}
type
index
status
data: {}
}
...
]
}
POST /console/park/events
editor
NO
Key | Type | Required | Description |
---|---|---|---|
status |
string | 🌑 | 此事件的狀態 |
slug |
string | 🌕 | 此事件的短網址 |
type |
string | 🌕 | 此事件的類型,如 ask_match |
category |
array of strings | 🌕 | 此事件的種類,如 livesteam |
image |
string | 🌑 | 此事件的封面圖片連結 |
tagline |
string | 🌑 | 此事件的標語 |
title |
string | 🌕 | 此事件的標題 |
before_title |
string | 🌑 | 此事件的 before_title |
after_title |
string | 🌑 | 此事件的 after_title |
description |
string | 🌑 | 此事件的詳細敘述 |
start_date |
timestamp | 🌑 | 此事件的開始日期 |
end_date |
timestamp | 🌑 | 此事件的結束日期 |
is_all_day |
boolean | 🌑 | 此事件是否為整天 |
location |
JSON | 🌑 | |
repeat_rules |
JSON | 🌑 | |
next_actions |
JSON | 🌑 | |
documentation |
JSON | 🌑 | |
related_content |
JSON | 🌑 | |
data |
JSON | 🌑 | |
collaborators |
array of integers: persona IDs | 🌑 | 此事件的共同舉辦 persona |
{
"id": 1,
"status": "active",
"slug": "2018-livestream",
"type": "ask-match",
"category": ["livestream"],
"image": "http://blalbal",
"tagline": "你問我我問誰?",
"title": "體育署長給問嗎?直播",
"before_title": "",
"after_title": "",
"description": "不然你來問問看嘛!",
"start_date": "2018-01-01",
"end_date": "2019-02-03",
"is_all_day": 1,
"location": {},
"repeat_rules": { "id": 1 },
"next_actions": {},
"documentation": {},
"related_content": {},
"data": {}
}
PATCH /console/park/events/:id
editor
NO