The API (spring boot microservice) creates a new channel into our hyperlegder fabric blockchain network
Step1 : Clone and Import the code into your Eclipse IDE
Step2 : Run ApiCreateNewchannelIntoBlockchainNetworkApplication.java
Step3 : Call the service from postman client (or any other rest client or GUI) \
Example
URL : YOUR_IP_ADDRESS:2020/my-blockchain-network/create-new-channel
Method : POST
Query Params :
channelName = E.g. businesschannel
networkPath = E.g. /home/ubuntu/fabric-samples/test-network
note : In my case I have created a channel for test-network and my network path is /home/ubuntu/fabric-samples/test-network. Please modify this input param as per your network path.
Crosscheck the channel "businesschannel" is created in the blockchain network