Ballerina Composer — Tutorial (Part III — Services)
In most of the integration scenarios, you have the requirement of exposing a certain functionality to the outside world as a service. In such a scenario, you can achieve this requirement so much easily with Ballerina Service Definitions. It as simple as just dragging and dropping a service from the composer tool palette to start your service logic.
Ballerina service encloses the Resources which contains the integration logic. You can add multiple resources to expose various functionalities as resources, and expose them as types of requests.
A service can be consist with following artifacts
- Connectors — Accessible by all the resources (Global to service scope)
- Variables — Accessible by all the resources (Global to service scope)