Skip to main content

Delete

權限限制: Token Authencation. 只能由創建使用者刪除
Token 可以經由 /api/auth/token取得

需求描述

使用 Product ID 刪除產品資料

Method

DELETE

Endpoint

  • /api/product/{product_id}

Request Header

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

Response

刪除成功

  • HTTP Status Code: 204

使用者驗證失敗

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