0.20.9 • Published 5 years ago

composer-rest-server v0.20.9

Weekly downloads
2,463
License
Apache-2.0
Repository
github
Last release
5 years ago

Hyperledger Composer REST Server

Set up the Composer REST Server with this command

npm install composer-rest-server -g

You may need to prefix this with a sudo command in order to have the necessary permissions ie.

sudo npm install composer-rest-server -g

Overview

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.

Usage

composer-rest-server

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"
    }
}
0.20.9

5 years ago

0.20.8

6 years ago

0.20.7

6 years ago

0.19.20

6 years ago

0.20.6

6 years ago

0.20.5

6 years ago

0.19.19

6 years ago

0.20.4

6 years ago

0.19.18

6 years ago

0.20.3

6 years ago

0.19.17

6 years ago

0.20.2

6 years ago

0.19.16

6 years ago

0.20.1

6 years ago

0.19.15

6 years ago

0.19.14

6 years ago

0.20.0

6 years ago

0.19.13

6 years ago

0.19.12

6 years ago

0.19.11

6 years ago

0.19.10

6 years ago

0.19.9

6 years ago

0.19.8

7 years ago

0.19.7

7 years ago

0.19.6

7 years ago

0.19.5

7 years ago

0.19.4

7 years ago

0.19.3

7 years ago

0.19.2

7 years ago

0.19.1

7 years ago

0.19.0

7 years ago

0.18.2

7 years ago

0.18.1

7 years ago

0.16.6

7 years ago

0.18.0

7 years ago

0.16.5

7 years ago

0.17.6

7 years ago

0.17.5

7 years ago

0.16.4

7 years ago

0.17.4

7 years ago

0.17.3

7 years ago

0.17.2

7 years ago

0.17.1

7 years ago

0.17.0

7 years ago

0.16.3

7 years ago

0.16.2

7 years ago

0.16.1

7 years ago

0.16.0

7 years ago

0.15.2

7 years ago

0.15.1

7 years ago

0.15.0

7 years ago

0.14.3

7 years ago

0.14.2

7 years ago

0.14.1

7 years ago

0.14.0

7 years ago

0.13.2

7 years ago

0.13.1

7 years ago

0.13.0

7 years ago

0.12.2

7 years ago

0.12.1

7 years ago

0.12.0

7 years ago

0.11.3

7 years ago

0.11.2

7 years ago

0.11.1

7 years ago

0.11.0

7 years ago

0.10.1

7 years ago

0.10.0

7 years ago

0.9.2

7 years ago

0.9.1

7 years ago

0.9.0

7 years ago

0.8.1

7 years ago

0.8.0

7 years ago

0.7.5

8 years ago

0.7.4

8 years ago

0.7.3

8 years ago

0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago

0.5.12

8 years ago

0.5.11

8 years ago

0.5.10

8 years ago

0.5.9

8 years ago

0.5.8

8 years ago

0.5.7

8 years ago

0.5.6

8 years ago

0.5.5

8 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.5

8 years ago

0.4.4

8 years ago

0.4.3

8 years ago

0.4.2

8 years ago