简体   繁体   中英

Hyperledger REST Server or SDK

With Hyperledger composer deprecated and fabric-rest-api ( https://github.com/hyperledger-archives/fabric-sdk-rest ) archived, what is the future roadmap of REST API for Hyperledger fabric? What is recommended way to expose rest APIs with Hyperledger Fabric 1.4.x? The documentation ( https://hyperledger-fabric.readthedocs.io/en/release-1.4/fabric-sdks.html ) mentions that REST SDK will be provided in subsequent releases - but cannot find a roadmap.

When you say REST api, I assume you mean a REST api to access your hyperledger fabric application ? If so then you would need to implement that yourself. As far as I know there is no plan to provide any sort of generic rest server that can access smart contracts hosted in fabric.

There were plans to build a Hyperledger Fabric REST SDK on top of the Node.js SDK, and work was started on this. The FABR key tracks all related stories to it on the Hyperledger Jira tracker (see https://jira.hyperledger.org/projects/FABR ).

The related repository is https://github.com/hyperledger-archives/fabric-sdk-rest

However as you can see the project has been archived. Many people have made their own REST APIs which exposes the internal Fabric functionality through REST, including myself. Another example might be one made by Altoros (see https://github.com/Altoros/fabric-rest ). The problem is that these are not always kept up to date and have questionable authentication (if any).

It's sad to say but the first thing you would have to develop to work with Hyperledger Fabric is your own set of tools.

有关使用 Node.js SDK 的 Hyperledger Fabric 的 REST API 实现的非常基本示例,我想参考https://medium.com/@kctheservant/an-implementation-of-api-server-for-hyperledger -fabric-network-8764c79f1a87

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM