In this example you will use Ballerina to exposes data as an API.
- JDK 1.8 or later
- Ballerina Distribution
- A Text Editor or an IDE
This is a Ballerina playground example. You can try it at ballerina.io.
GET all Customers
curl http://localhost:9090/customer
ToDo:
// Get database credentials via configuration API. const string user_name =? config:getAsString("username"); const string password =? config:getAsString("password"); const string DB_NAME="CUSTOMER_DB";