Hyperledger @sp-temp/composer REST server that uses the Hyperledger @sp-temp/composer LoopBack connector
Last updated 2 years ago by volodyaeleks .
Apache-2.0 · Repository · Original npm · Tarball · package.json
$ cnpm install @sp-temp/composer-rest-server 
SYNC missed versions from official npm registry.

Hyperledger Composer REST Server

Set up the Composer REST Server with this command

npm install composer-rest-server -g


This is a simple application that prompts the user for details of a connection profile, Business Network Identifier, participant id and participant password. The application then starts a loopback application which uses the Hyperledger Composer LoopBack Connector to connect to the Business Network, extract the models and then present a page containing the REST APIs that have been generated for the model.

Executing those APIs will then have a real effect on the business network to which the application is connected.



Hints and Tips

For a connection profile, Hyperledger Composer looks for a connection.json file in the user's <HOME>/.composer-connection-profiles directory.

e.g. If your connection profile is specified in <HOME DIR>/.composer-connection-profiles/auction-app/connection.json then you would need to specify auction-app as your connection profile.

Additionally the business network identifier that you'll need to specify is that which the business network was deployed with. Here is an example connection.json profile:

    "type": "hlf",
    "keyValStore": "/Users/me/.composer-credentials/kvs",
    "membershipServicesURL": "grpc://some.ip.address.here:7054",
    "peerURL": "grpc://some.ip.address.here:7051",
    "eventHubURL": "grpc://some.ip.address.here:7053",
    "deployWaitTime": 300,
    "invokeWaitTime": 10,
    "networks": {
        "org.acme.biznissnet": "1facb9f46ac3998f4bce1dbaf8979085b01737fccb45db70903895901288ec00"


Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Hyperledger Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.

Current Tags

  • 0.20.14                                ...           latest (2 years ago)

5 Versions

  • 0.20.14                                ...           2 years ago
  • 0.20.11                                ...           2 years ago
  • 0.20.10                                ...           2 years ago
  • 0.20.9                                ...           2 years ago
  • 0.20.8                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (16)
Dependents (0)

Copyright 2014 - 2017 © taobao.org |