跳至主要内容

Delete

需求描述

刪除產品資料

Method

DELETE

Endpoint

  • /api/product/{product_id}

Request Header

{
"Authorization": "Bearer {token}"
}

Response

刪除成功

  • HTTP Status Code: 204

使用者驗證失敗

  • HTTP Status Code: 401
{
"detail": "Invalid token.",
}