Hyperledger - composer REST API 或向 add/modify 资产提交交易?
Hyperledger - composer REST API or submit transactions to add/modify assets?
通过 composer REST API 创建资产是个好主意吗?一些示例将交易提交给 add/modify 资产,这是为什么?
"Yes, it is, if that's the correct architectural decision for your environment"。 REST API 可以有很大的优势,具体取决于您如何将它们用于您的设置 - 这 link should describe some of these Its no different in many respects from the generic question "should I use REST APIs to do x" - its largely a business / application architecture decision to decide when to use REST APIs - see also the discussion in this article 很多原因是由于一致的命名方案、有状态、处理资源而不是方法、灵活性、移动性等
一个经常看到的例子是从 Angular 应用程序或类似应用程序中使用 REST APIs - 可以在这个 Hyperledger Composer 'Letter of Credit' 示例应用程序中看到它们的使用示例 - > https://github.com/hyperledger/composer-sample-applications/blob/master/packages/letters-of-credit/src
通过 composer REST API 创建资产是个好主意吗?一些示例将交易提交给 add/modify 资产,这是为什么?
"Yes, it is, if that's the correct architectural decision for your environment"。 REST API 可以有很大的优势,具体取决于您如何将它们用于您的设置 - 这 link should describe some of these Its no different in many respects from the generic question "should I use REST APIs to do x" - its largely a business / application architecture decision to decide when to use REST APIs - see also the discussion in this article 很多原因是由于一致的命名方案、有状态、处理资源而不是方法、灵活性、移动性等
一个经常看到的例子是从 Angular 应用程序或类似应用程序中使用 REST APIs - 可以在这个 Hyperledger Composer 'Letter of Credit' 示例应用程序中看到它们的使用示例 - > https://github.com/hyperledger/composer-sample-applications/blob/master/packages/letters-of-credit/src