Update
需求描述
修改產品資料
提供 name, description, price, recipient_id 任一欄位進行修改
參照以下範例
每個欄位都是可有可無
Method
PACTH
Endpoint
/api/product/{product_id}
Request Header
{
"Authorization": "Bearer {token}"
}
Request Body
{
"name": "string",
"description": "string",
"price": "string",
"recipient_id": "string",
}
Acceptable
{
"name": "string",
}
Response
修改成功
- HTTP Status Code: 200
{
"product_id": "string",
"name": "string",
"price": "float",
"recipient_id": "string",
"user_id": "string",
"create_time": "timestamp",
}
使用者驗證失敗
- HTTP Status Code: 401
{
"detail": "Invalid token.",
}