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