This repository manages the connectors generated using Ballerina OpenAPI tool while providing the capability to build and publish generated connectors to Ballerina Central.
- Download and install the latest Ballerina version from here.
- Set the
BALLERINA_HOME
environment variable to the ballerina distribution directory. eg./usr/lib/ballerina
- Fork and Clone the repository
- Navigate to
/openapi
directory and runbal new <connector_name> -t lib
to create a new Ballerina project - Copy the OpenAPI yaml/json definition file of the API you wish to generate the connector to the
<connector_name>
directory. - Run
bal openapi -i <openap_file_name> --mode client
to generate the connector. - Run
bal build
to check whether the newly generated connector is compiling successfully. - Run necessary unit tests to verify the functionality of the generated connector.
- Run
./gradlew build
. - Push the changes and create a Pull Request to the
master
branch of theballerinax-openapi-connector
repository.
As an open source project, Ballerina welcomes contributions from the community.
For more information, go to the contribution guidelines.
All contributors are encouraged to read the Ballerina Code of Conduct.
Ballerina code is distributed under Apache license 2.0.
- Discuss code changes of the Ballerina project in ballerina-dev@googlegroups.com.
- Chat live with us via our Discord server.
- Post all technical questions on Stack Overflow with the #ballerina tag.