REST calls are a convenient way to communicate with the Fabric network. As we did in the previous chapter, we will generate a RESTful interface to access the business network by using the composer-rest-server tool. For that, navigate to the project folder and type the following command:
composer-rest-server
You'll be asked a few questions, for which you can provide the same answers as in the following screenshot:
As a next step, we will use the REST interface to test the LC business network we have developed. If you open a browser and navigate to http://youIpAddress:3000, you will see something similar to the following page:
You can expand each list of items (transactions, assets) on the page to invoke the associated transaction we defined in the network model. Let’s simulate an LC process and test each step using the REST interface.