core-documentation

Act

List acts

GET /console/lab/acts

Auth

Paging

NO

Available query parameters

Key Type Description Match Example
title string 用標題來過濾法案清單 partial 集會
st integer: specific topic ID 用關聯小議題來過濾法案清單 exact 1 2

Response

{
  rows: [
    {
      id
      title
      official_seq_no
      specific_topics: [
        {
          id
          title
          index
          image
        }
        ...
      ]
    }
    ...
  ]
  totalRowCount
}

Get a single act

GET /console/lab/acts/:id

Auth

Paging

NO

Response

{
  id
  title
  official_seq_no
  specific_topics: [
    {
      id
      title
      index
      image
    }
    ...
  ]
}

Create an act

POST /console/lab/acts

Auth

Paging

NO

Input

Key Type Required Description
title string 🌕 標題
official_seq_no string 🌕 院總字號;用字串提高彈性
specific_topics array of integers: specific topic IDs 🌕 關聯小議題 ID 列表

Sample input

{
  "title": "民法",
  "official_seq_no": "9487",
  "specific_topics": [
    1, 2, 4
  ]
}

Response

Returns the newly created act

Update an act

PATCH /console/lab/acts/:id

Auth

Paging

NO

參考 Create an act

Delete an act

DELETE /console/lab/acts/:id

Auth

Paging

NO

Response

204 No Content