Blockchain User
Blockchain User

Reputation: 51

Calling External Services in Hyperledger Composer

As per Hyperledger Composer documenation, post(url,txn) supports for HTTP post only. What if I want to use HTTP GET ? My smart contract should validate the data entered by user with external data which can be fetched by REST API. Please help on this.

Upvotes: 0

Views: 160

Answers (1)

Dan Selman
Dan Selman

Reputation: 2297

Only POST is currently supported. You will have to broker your POST request from Composer through something like Node-RED or OpenWhisk to transform it into a GET request.

Upvotes: 1

Related Questions