Ballerina Playground - Hello Service
What you’ll build
In this example you will build a simple hello service that accepts a HTTP get request and reply back with a greeting message.
This is a Ballerina playground example. You can try it at ballerina.io.
Prerequisites
- JDK 1.8 or later
- Ballerina Distribution
- A Text Editor or an IDE
Developing the service
This is a Ballerina playground example. You can try it at ballerina.io.
Invoking the RESTful service
Sample Request
curl http://localhost:9090/hello/sayHello