Skip to main content
A connector is a Camel-K integration packaged as a Quarkus app and a Helm chart. The execution pattern for every operation is the same:
You implement the body of each direct://<operationId> route. Each operationId is one of the operations declared in the Grand Central OpenAPI spec the connector implements; the OpenAPI plugin auto-wires the inbound REST DSL to those direct:// routes. The route then calls the vendor through a kamelet, almost always gc-http-caller for REST.

The skeleton every connector has

Every connector class extends RouteBuilder, declares its kamelet URIs and property names as constants, registers the header-removal policy and GrandCentralUtil bean, then defines one direct://<operationId> per OpenAPI operation.

REST/JSON operation patterns

These are the canonical shapes of two of the most common HTTP operations. Both assume JSON in and JSON out, and use the gc-http-caller kamelet for the vendor call.

GET with query parameters

POST to create a resource

SOAP/XML anatomy at a glance

When the vendor exposes a SOAP/WSDL API, the connector marshals JSON to XML, applies an XSLT, calls the vendor through the vendor SDK kamelet, transforms the SOAP response back to JSON, and runs a type-coercion processor.
Run correctNumericAndBooleanValuesInJsonFromProperties after xmlToJson because Jackson’s XML deserializer renders every value as a string. The processor coerces numbers and booleans back, honoring typeConversion.skipAttributes.

Event / Generic anatomy at a glance

Use this style to pull from a third-party REST API, transform and validate, and push to the Grand Central ASB producer.

Next step

For the kamelet that handles every outbound REST call, see Call REST endpoints.