Waiting for engine...
Skip to main content

Choosing the framework

Boomi offers DSL, REST, and SOAP frameworks to develop your connector. If these frameworks don't fit into your requirement, you can develop a custom connector by implementing the required interfaces from the Connector SDK.

To learn more about the connector development process and to choose the right framework, refer to Connectors development process.

Prerequisites

Ensure that you've setup your development environment and created a local project.

The OpenAPI Specification (OAS) creates a common framework for the entire API lifecycle to define your RESTful service's functionality, including their resources, and associated request-response cycles. The OAS is both human and machine readable, and acts as the blueprint of your entire API development and delivery letting you communicate the value and functionality of your API, both to internal stakeholders, and external consumers.

Using the OpenAPI Domain Specific Language (DSL) framework allows developers to map OpenAPI REST-based language endpoints to a user-friendly integration developer experience.

Why build an OpenAPI connector?

  • It's faster to build from a spec and this approach cuts down on the development time significantly (80%) from custom SDK development approach
  • Creates a more standardized Boomi connector
  • Ensures higher code quality and consistency
  • Easier maintenance and support
  • Auto-generated help text

Boomi provides a Gradle plugin that supports OpenAPI DSL to create a structured and local java project for your OpenAPI connector:


Before you begin

Building the project

  1. Open the build.gradle file and define the Boomi plugin version, the SDK version, and the OpenAPI 3.0 specification to use.
info

For latest versions of the plugin and Connector SDK, refer to the Boomi Gradle plugin and the Connector SDK Changelog respectively.

To checkout the sample build.gradle file, OpenAPI specifications, and other details, refer to the Gradle plugin --> Readme.md --> OpenAPI Connector Extension section. You can customize your build.gradle file with your OpenAPI 3.0 specification location, authentication parameters, and operation definitions.

tip
  • OpenAPI DSL is a no-code way of building a Boomi connector. Hence, there's no need to create Java code or mention any className in your build.gradle file.
  • build.gradle configuration is the key here. You need to configure only your build.gradle file with all the required authentication and operations, which generates all the required files for you to upload to the Boomi Enterprise Platform.
  1. Open a terminal window to start a new command line local session. Ensure that you are in the base directory of the project where the gradlew/gradlew.bat file is located.

  2. To build all the necessary files for your connector, run ./gradlew build command in your terminal window.

  3. Upon a successful build, a connector archive file (*.car) gets created in the build/distributions directory within your project and contains:

  • META-INF/connector-descriptor.xml

  • META-INF/connector-config.xml

  • lib/connector-sdk-util-sdkVersion.jar

    • For example, connector-sdk-util-2.14.6.jar
  • lib/projectName-projectVersion.jar

    • For example, MQTTConnector-0.0.1-SNAPSHOT.jar

    dslProjectBuildFiles

Next Steps

To customize the Java files as per your requirement, you can extend the OpenAPI connector and implement the Connector and Operation interfaces.

Else, you can upload the generated files to the Boomi Enterprise Platform: Deploying your connector to Boomi Enterprise Platform.

References

Build an OpenAPI Connector video tutorial.

On this Page