Read
需求描述
讀取產品資料
以 product_id 讀取整筆產品資料
Method
POST
Endpoint
/api/product/{product_id}
Request Header
{
"Authorization": "Bearer {token}"
}
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.",
}