API Url


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

HTTP Method

POST

API Path


/api/shopping/v1/product

API Description


新增產品,請務必注意必填欄位與型別。

Request Body


Key Value Type Required
id gNd4cp2u5NxXTTaT String Yes
name KoboGame String Yes
category game String Yes
price 1000 String Yes
description 超好玩遊戲 String No

Example JSON

{
    "id": "gNd4cp2u5NxXTTaT",
    "name": "KoboGame",
    "category": "game",
    "price": "1000",
    "description": "超好玩遊戲"
}

Response Example


HTTP Code Status 200

{
    "status": true,
    "message": "新增成功,但是尚未連接資料庫。"
}