我们定义Asset
为:
asset PurchaseOrder identified by orderId {
o String orderId
--> SupplierChainParticipant createdBy
--> SupplierChainParticipant assignedTo
o String description
o String status
o Integer quantity
o String assetId
}
并Participant
作为:
participant SupplierChainParticipant identified by participantId {
o String participantId
o String identity
o String type
}
现在,当我Asset
使用 composer-rest-server 的 REST API 获取详细信息时,我收到以下响应:
{
"orderId": "o5",
"createdBy": "resource:com.supplychain-network.SupplierChainParticipant#p1",
"assignedTo": "resource:com.supplychain-network.SupplierChainParticipant#p2",
"description": "New Engine",
"status": "created",
"quantity": 1,
"assetId": "a1"
}
由于目前它仅participantId
在获取Asset
详细信息时才返回,有没有办法获取参与者的详细信息以及Asset
JSON 响应?