The Ballerina WSO2 APIM catalog publisher module includes ballerina service management tools for publishing service data to WSO2 API manager service catalogs.
- Publish Ballerina services to the WSO2 APIM catalog
- Add
import ballerinax/wso2.apim.catalog as _;
to the default module. - Add
remoteManagement=true
to[build-options]
section of the Ballerina.toml file. - Create Config.toml file if it does not exist, and add the following configurations.
Modify the configurations to match your WSO2 APIM manager.
[ballerinax.wso2.apim.catalog] serviceUrl="<Url of the service catalog endpoint>" tokenUrl="<Url of the token endpoint>" username="<username>" password="<password>" clientId="<clientId>" clientSecret="<Client secret>"
- Run the project with the following command.
$ bal run
Issues and Projects tabs are disabled for this repository as this is part of the Ballerina library. To report bugs, request new features, start new discussions, view project boards, etc. please visit Ballerina library parent repository.
This repository only contains the source code for the package.
-
Download and install Java SE Development Kit (JDK) version 17 (from one of the following locations).
-
Export your GitHub personal access token with the read package permissions as follows.
export packageUser=<Username> export packagePAT=<Personal access token>
Execute the commands below to build from source.
-
To build the library:
./gradlew clean build
-
Publish ZIP artifact to the local
.m2
repository:./gradlew clean build publishToMavenLocal
-
Publish the generated artifacts to the local Ballerina central repository:
./gradlew clean build -PpublishToLocalCentral=true
-
Publish the generated artifacts to the Ballerina central repository:
./gradlew clean build -PpublishToCentral=true
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.
- Chat live with us via our Discord server.
- Post all technical questions on Stack Overflow with the #ballerina tag.