API Url


https://hex-escape-room.herokuapp.com

HTTP Method

PUT

API Path


/api/shopping/v1/product/:id

API Description


編輯產品,請務必注意必填欄位與型別。

Request Params


ID (產品 ID)

Request Body


Key Value Type Required
name FlashSpeed9 String Yes
category wifi String Yes
price 500 Number Yes
description PlayStation6 String No

Example JSON

{
    "name": "FlashSpeed9",
    "category": "wifi",
    "price": 500,
    "description": "PlayStation6"
}