Testing the network from the command line

You can also interact with the network from a terminal using the curl command, and the syntax is shown for you:

curl -X GET --header 'Accept: application/json' 'http://localhost:3000/api/LetterOfCredit'

Try this out in a terminal, and you'll see the data on the command line:

It's a lot less beautiful than the Playground or SWAGGER view, but if you're a programmer, you know how powerful this is! Think about how this can help with automated testing, for example.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.117.192