在API响应中找不到区块链数据

时间:2018-09-12 09:16:58

标签: hyperledger-composer

我正在使用IoT Asset Tracking Perishable Goods Network project的作曲家文件。

在操场上: 初始化(SetupDemo事务)后,我运行了两次AccelReading事务,这反映在Shipment资产中:

{ 
    "$class": "org.acme.shipping.perishable.Shipment", 
    "shipmentId": "320022000251363131363432", 
    <shipment data>, 
    "AccelReadings": [ 
        { 
            "$class": "org.acme.shipping.perishable.AccelReading", 
            <accelreading data 1>
            "timestamp": "2018-09-11T17:48:04.692Z"
        }, 
        { 
            "$class": "org.acme.shipping.perishable.AccelReading", 
            <accelreading data 2>
            "timestamp": "2018-09-11T18:59:27.340Z"
        } 
    ] 
}

问题是,使用 Composer REST API 时,我看不到正在读取数据x

  • AccelReading API响应包含$ class,shipment,transactionId, 时间戳记。
  • 货运API响应包含$ class,shipmentId,货运数据。

0 个答案:

没有答案