/playground-data-service

Primary LanguageBallerinaApache License 2.0Apache-2.0

Ballerina Playground - Data Service

What you’ll build

In this example you will use Ballerina to exposes data as an API.

Prerequisites

Developing the service

This is a Ballerina playground example. You can try it at ballerina.io.

Invoking the service

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";