Data Presentation
API Design
The police report records can be defined through JSON to provide relevant information to the user.
/police-report/record
/police-report/record/:id
JSON
{
"data": [
{
"id": "W10-1090102-00225",
"title": "2024/01/01 網路報案",
"type": "當事人",
"status": "處理中",
"time_of_acceptance": "",
"date_of_occurrence": "2024/01/01",
"time_of_occurrence": "13:36",
"location_of_occurrence": "台北市大安區基隆路7段9號",
"content": "具體內容具體內容具體內容具體內容具體內容具體內容"
},
{
"id": "W10-1090102-0026",
"title": "2024/02/02 網路報案",
"type": "關係人",
"status": "已結案",
"time_of_acceptance": "2024/02/04 07:22:33",
"date_of_occurrence": "2024/02/02",
"time_of_occurrence": "14:36",
"location_of_occurrence": "台北市大安區基隆路7段12號",
"content": "具體內容具體內容具體內容具體內容具體內容具體內容具體內容具體內容具體內容具體內容具體內容具體內容",
"reply": {
"from": "台北市政府警察局",
"time": "2024/02/04 11:23:11",
"status": "親愛的市民您好:處理狀態處理狀態處理狀態處理狀態"
}
}
]
}
Data Field Description
Field | Purpose | Example |
---|---|---|
id | Case ID | W10-1090102-0026 |
title | Case Title | 2024/02/02 網路報案 |
type | Reporter Category | 關係人 |
status | Case Status | 已結案 |
time_of_acceptance | Time of Acceptance (optional) | 2024/02/04 07:22:33 |
date_of_occurrence | Date of Occurrence | 2024/02/02 |
time_of_occurrence | Time of Occurrence | 14:36 |
location_of_occurrence | Location of Occurrence | 台北市大安區基隆路7段12號 |
content | Detailed Content | 具體內容具體內容具體內容具體內容具體內容 |
reply | Case-Related Replies (optional, omit if not applicable) | Refer to reply |
reply
Field | Purpose | Example |
---|---|---|
from | Replying Department | 台北市政府警察局 |
time | Reply Time | 2024/02/04 11:23:11 |
status | Processing Status | 親愛的市民您好:處理狀態處理狀態處理狀態處理狀態 |