The WSO2 MI Connector Generator is a tool designed to simplify the creation of connectors for the WSO2 Micro Integrator using OpenAPI specifications and Protocol Buffer (Proto) files.
Before you start, ensure that you have:
- Java Development Kit (JDK) 8 or later
- Apache Maven 3.6.x or higher
Check Java installation:
java -versionCheck Maven installation:
mvn -versionNavigate to your project directory (<PROJECT_HOME>/) and build the project using Maven:
-
Build without tests:
mvn clean install
-
Build with unit tests:
mvn clean install -Dskip-tests=false
Once built, the tool will be packaged as a zip file:
mi-connector-generator-{version}.zip
This file is located in:
<PROJECT_HOME>/target
Extract this zip file to your preferred location.
Navigate to the extracted folder and go to the bin directory.
-
For macOS/Linux: Use
generate.sh./generator <openapi-yaml-file | proto-file> <output-directory> [miVersion]
-
For Windows: Use
generate.batgenerator.bat <openapi-yaml-file | proto-file> <output-directory> [miVersion]
Replace:
<openapi-yaml-file | proto-file>with the path to your OpenAPI or Proto file.<output-directory>with the path where the connector should be generated.[miVersion]with your specific Micro Integrator version.
Supported Media Types:
application/jsonapplication/xmlapplication/x-www-form-urlencoded
Supported Operation Types:
GETPUTPOSTDELETEPATCH
Supported Features:
- Provide TLS support for the communication channel
- All primitive data types
- Java options:
java_multiple_filesjava_outer_classnamejava_package
For more details, refer to the tool specification documentation located under the doc folder within your project directory.