Closed Chun-Cheng closed 4 months ago
space_id
/^[a-fA-F0-9]{24}$/
response
if space_id was given, it'll return an object. Otherwise, it'll return an array.
if space_id === undefined:
data
_id
name
zh-tw
en
open
exception_time
if space_id !== undefined:
example: space_id: undefined
{ "data": [ { "_id": "65f48bbc6f21a65d302a6149", "name": { "zh-tw": "學生活動中心", "en": "Student Activity Center" }, "open": 1, "exception_time": [] }, { "_id": "65f48bbc6f21a65d302a614a", "name": { "zh-tw": "勤樸樓B1小舞台", "en": "Cin-Pu Building B1 Stage" }, "open": 1, "exception_time": [] } ] }
space_id: "65f48bbc6f21a65d302a6149"
{ { "_id": "65f48bbc6f21a65d302a6149", "name": { "zh-tw": "學生活動中心", "en": "Student Activity Center" }, "open": 1, "exception_time": [] } }
error_code
message
example:
{ "error_code": "R_ID_NOT_FOUND", "message": "Space ID not found" }
URB-30 GET `/spaces` : 取得場地搜尋清單
輸入與輸出
space_id
(query)場地 _id
string, optional
format: Object ID
/^[a-fA-F0-9]{24}$/
example: "65f48bbc6f21a65d302a6149"
response
content: application/json
if space_id was given, it'll return an object. Otherwise, it'll return an array.
if space_id === undefined:
data
: Array_id
: string, 場地 _idname
: Object, 場地名稱zh-tw
: string, 場地中文名稱en
: string, space English nameopen
: integer, 是否開放預約, 1: 可預約, 0: 不可預約exception_time
: Arrayif space_id !== undefined:
_id
: string, 場地 _idname
: Object, 場地名稱zh-tw
: string, 場地中文名稱en
: string, space English nameopen
: integer, 是否開放預約, 1: 可預約, 0: 不可預約exception_time
: Arrayexample: space_id: undefined
space_id: "65f48bbc6f21a65d302a6149"
error_code
: string, 錯誤代碼message
: string, 提示訊息example:
檔案
資料集