We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/items
item_id
/^[a-fA-F0-9]{24}$/
status: 200 OK content: application/json
if item_id was given, it'll return an object. Otherwise, it'll return an array.
if item_id === undefined:
data
_id
name
zh-tw
en
quantity
exception_time
if item_id !== undefined:
example: item_id: undefined
{ "data": [ { "_id": "65f48bbc6f21a65d302a6147", "name": { "zh-tw": "塑膠椅", "en": "Plastic Chairs" }, "quantity": 30, "exception_time": [] }, { "_id": "65f48bbc6f21a65d302a6148", "name": { "zh-tw": "長桌", "en": "Tables" }, "quantity": 2, "exception_time": [] } ] }
item_id: "65f48bbc6f21a65d302a6147"
{ { "_id": "65f48bbc6f21a65d302a6147", "name": { "zh-tw": "塑膠椅", "en": "Plastic Chairs" }, "quantity": 30, "exception_time": [] } }
status: 404 Not found content: application/json
error_code
message
example:
{ "error_code": "R_ID_NOT_FOUND", "message": "Item ID not found" }
The text was updated successfully, but these errors were encountered:
URB-29 GET `/items` : 取得物品搜尋清單
Sorry, something went wrong.
Chun-Cheng
No branches or pull requests
輸入與輸出
item_id
(query)物品 _id
string, optional
format: Object ID
/^[a-fA-F0-9]{24}$/
example: "65f48bbc6f21a65d302a6147"
status: 200 OK
content: application/json
if item_id was given, it'll return an object. Otherwise, it'll return an array.
if item_id === undefined:
data
: Array_id
: Object ID, 物品 _idname
: Object, 物品名稱zh-tw
: string, 物品中文名稱en
: string, item English namequantity
: integer, 物品數量exception_time
: Arrayif item_id !== undefined:
_id
: Object ID, 物品 _idname
: Object, 物品名稱zh-tw
: string, 物品中文名稱en
: string, item English namequantity
: integer, 物品數量exception_time
: Arrayexample: item_id: undefined
item_id: "65f48bbc6f21a65d302a6147"
status: 404 Not found content: application/json
error_code
: string, 錯誤代碼message
: string, 提示訊息example:
檔案
資料集
The text was updated successfully, but these errors were encountered: