# API 文件 ## API 目的 此 API 用於取得特定地點的留言數量與上傳影片數量。 ## Endpoint - **URL**: /api/v1/place/{placeID}/stats - **方法**: GET ## Headers Authorization: Bearer {token} Content-Type: application/json ## Path Parameters | 名稱 | 說明 | |----------|------------------------| | placeID | 地點的唯一識別碼。 | ## Query Parameters | 名稱 | 類型 | 是否必要 | 說明 | |----------|--------|----------|------------------------| | userID | string | 否 | 使用者id, 可以取得只包含該使用者的留言數量及影片數量 | ## Body Parameters | 名稱 | 類型 | 是否必要 | 說明 | |----------|--------|----------|------------------------| | | | | | ## Response ### Success (200 OK) json { "placeId": "12345", "commentCount": 150, "videoCount": 30 } - **placeId**: 地點的唯一識別碼。 - **commentCount**: 地點的留言總數。 - **videoCount**: 地點的上傳影片總數。 ### Error Response - **400 Bad Request** - **401 Unauthorized** - **404 Not Found** - **500 Internal Server Error**