GET /console/lab/caucuses
NO
Key | Type | Description | Match | Example |
---|---|---|---|---|
name |
string | 用姓名過濾黨團清單 | partial | 無 國民 |
{
rows: [
{
id
name
abbreviation
color
emblem
basic_info
add_info
type
status
}
...
]
totalRowCount
}
GET /console/lab/caucuses/:id
NO
{
id
name
abbreviation
color
emblem
basic_info
add_info
type
status
}
POST /console/lab/caucuses
NO
Key | Type | Required | Description |
---|---|---|---|
name |
string | 🌕 | 名稱 |
abbreviation |
string | 🌕 | 簡稱 |
color |
string array | 🌑 | 代表色 |
emblem |
string | 🌑 | 代表徽章的檔案路徑 |
basic_info |
string | 🌑 | 基本資訊 |
add_info |
string | 🌑 | 補充資訊 |
type |
string | 🌑 | 黨團/政團 |
status |
string | 🌑 | active/inactive… |
{
"name": "無黨籍",
"abbreviation": "無黨籍",
"color": "#000,#fff",
"emblem": "/path/to/emblem.png",
"basic_info": "Lorem ipsum.",
"add_info": "Lorem ipsum.",
"type": "政團",
"status": "active"
}
Returns the newly created caucus
PATCH /console/lab/caucuses/:id
NO
DELETE /console/lab/caucuses/:id
NO
204 No Content