API Url


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

HTTP Method


GET

API Path


/api/shopping/v1/products?category=xxx

API Description


若沒有帶入 Query 預設會回傳全部產品列表,若 category 不存在則也會回傳全部產品。

Request Query


category (非必填)

Response Example


HTTP Code Status 200

[
    {
        "id": "Y4agVBkW3c2Y5q9U",
        "name": "FlashSpeed6",
        "price": 15858,
        "category": "wifi",
        "status": true
    },
    {
        "id": "UvwvsE5tDdegnXx2",
        "name": "PlayStation6",
        "price": 39800,
        "category": "game",
        "status": true
    },
    ...
]