Hyperledger composer REST API 没有 return 交易 ID
Hyperledger composer REST API does not return transaction id
为什么我的 composer REST 服务器没有返回请求的事务 ID,或者我在哪里可以找到该 ID?
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \
"$class": "org.example.biznet.SampleAsset", \
"assetId": "1", \
"value": "103300" \
}' 'http://localhost:3000/api/SampleAsset'
回复:
{
"date": "Sun, 04 Feb 2018 15:59:10 GMT",
"x-content-type-options": "nosniff",
"etag": "W/\"52-0IlZYwJKBE6+rHqbXGCNVeELkQ0\"",
"x-download-options": "noopen",
"x-frame-options": "DENY",
"content-type": "application/json; charset=utf-8",
"access-control-allow-origin": "http://localhost:3000",
"access-control-allow-credentials": "true",
"connection": "keep-alive",
"vary": "Origin, Accept-Encoding",
"content-length": "82",
"x-xss-protection": "1; mode=block"
}
正如我在拉取请求中看到的那样,它应该已解决:https://github.com/hyperledger/composer/pull/843
我的版本:
├── composer-cli@0.16.3
├── composer-playground@0.16.3
├── composer-rest-server@0.16.3
为什么我的 composer REST 服务器没有返回请求的事务 ID,或者我在哪里可以找到该 ID?
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \
"$class": "org.example.biznet.SampleAsset", \
"assetId": "1", \
"value": "103300" \
}' 'http://localhost:3000/api/SampleAsset'
回复:
{
"date": "Sun, 04 Feb 2018 15:59:10 GMT",
"x-content-type-options": "nosniff",
"etag": "W/\"52-0IlZYwJKBE6+rHqbXGCNVeELkQ0\"",
"x-download-options": "noopen",
"x-frame-options": "DENY",
"content-type": "application/json; charset=utf-8",
"access-control-allow-origin": "http://localhost:3000",
"access-control-allow-credentials": "true",
"connection": "keep-alive",
"vary": "Origin, Accept-Encoding",
"content-length": "82",
"x-xss-protection": "1; mode=block"
}
正如我在拉取请求中看到的那样,它应该已解决:https://github.com/hyperledger/composer/pull/843
我的版本:
├── composer-cli@0.16.3
├── composer-playground@0.16.3
├── composer-rest-server@0.16.3