Calling APIs is an important part of writing code on the internet. In this exercise, you will need to fetch data from an endpoint and ensure it was retrieved successfully.
string
and error
.io:println()
).error
has occurred, print the error message to the console.Sign up to Exercism to learn and master Ballerina with 58 exercises, and real human mentoring, all for free.