Generating the Hyperledger Composer REST API

Run the following command to generate a composer server API:

composer-rest-server

Enter admin@insurance-claim-network from the business network card, as shown in the following screenshot:

Entering business network card

This will a generate the REST API and expose it as http://serverIP:3000 and http:// serverIP:3000/explorer.

Open the explore URL. You will see the generated REST endpoints, as follows:

Let's try a number of methods to demonstrate how these endpoints interact with the fabric network. ...

Get Blockchain Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.