---
# System prepended metadata

title: 真實呈現區塊鏈API文件

---

# 真實呈現區塊鏈API文件
###### tags: PLTT

## 1. GET API 回傳資料格式範例：
```json=
[
  {
    "oid": "133450",
    "phid": null,
    "title": "紅茶 [原料倉領貨作業(原料倉)]",
    "startTime": "2020-11-06 16:43:04",
    "endTime": "2020-11-06 16:43:17",
    "sourceId": [
        "94683"
    ],
    "producedNumber": "12000 ML",
    "restNumber": "12000 ML",
    "transactionId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "lastTransactionId": null,
    "nextTransactionId": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
    "mediaList": [
      {
        "url": "https://s3.hicloud.net.tw/foodcloud/nvr/908/133092.mp4",
        "md5": "xxxxxxxxxxxxxxx"
      }
    ],
    "sensorData": [
      {
        "type": "重量",
        "startTime": "2020-11-06 16:43:04",
        "endTime": "2020-11-06 16:43:17",
        "macAddress": "AB:CD:EF:12:34:56",
        "data": [
          "0",
          "0.218"
        ]
      }
    ]
  },
  {
    "oid": "133450",
    "phid": null,
    "title": "紅茶 [原料倉領貨作業 (原料倉2)]",
    "startTime": "2020-11-06 16:43:04",
    "endTime": "2020-11-06 16:43:17",
    "sourceId": [
        "94683"
    ],
    "producedNumber": "12000 ML",
    "restNumber": "12000 ML",
    "transactionId": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
    "lastTransactionId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "nextTransactionId": null,
    "mediaList": [
      {
        "url": "expired",
        "md5": "xxxxxxxxxxxxxxx"
      }
    ],
    "sensorData": [
      {
        "type": "重量",
        "startTime": "2020-11-06 16:43:04",
        "endTime": "2020-11-06 16:43:17",
        "macAddress": "AB:CD:EF:12:34:56",
        "data": [
          "0",
          "0.218"
        ]
      }
    ]
  },
]
```

## 2. POST/PUT API 寫入資料格式範例：

```json=
{
  "oid": "133450",
  "phid": null,
  "title": "紅茶 [自拍保證輸出]",
  "startTime": "2020-06-26 12:51:13",
  "endTime": "2020-06-26 12:51:13",
  "sourceId": [],
  "producedNumber": "12000 ML",
  "restNumber": "12000 ML",
  "mediaList": [
    {
      "url": "https://s3.hicloud.net.tw/foodcloud/photo/output/selfie/1425/2020/94683.jpg",
      "md5": "sdfosdfksdfsdlfkdsf"
    },
    {
      "url": "https://s3.hicloud.net.tw/foodcloud/photo/output/photo/1425/2020/94683.jpg",
      "md5": "sdlsdldslslsllsllll"
    }
  ],
  "sensorData": []
}
```