You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issues sketches the required changes to address a web-hook for to send mapped payload to external custom endpoints.
This was requested in #303.
We plan to create a new connector WebHook, e.g. dynamic.mapping.connector.http.WebHook and leave the existing Http Connector unchanged. The web-hook is only for outbound and has custom properties, whereas the already existing http Connector is a singleton and only has one property.
The custom properties of the web-hook could be:
Base URL incl. host, port, context path, e.g. https://myServer.com:8001/webHook
Different authorization mechanisms: basic, bearer token, ...
content-type (some specialization of application/json)
Payload will be the mapped payload.
Possible properties in the web-hook could be specified in the code as follows:
Map<String, ConnectorProperty> configProps = new HashMap<>();
configProps.put("url",
new ConnectorProperty(true, 0, ConnectorPropertyType.STRING_PROPERTY, false, false, null, null));
configProps.put("user",
new ConnectorProperty(false, 1, ConnectorPropertyType.STRING_PROPERTY, false, false, null, null));
configProps.put("password",
new ConnectorProperty(false, 2, ConnectorPropertyType.SENSITIVE_STRING_PROPERTY, false, false, null,
null));
String name = "Web Hook";
String description = "Generic Web Hook to send custom payload in the body......\n" ;
connectorType = ConnectorType.WEB_HOOK;
connectorSpecification = new ConnectorSpecification(name, description, connectorType, configProps, false);
Tasks backend
Implement dynamic.mapping.connector.http.WebHook
Change method public boolean supportsOutbound() in dynamic.mapping.connector.core.client.AConnectorClient to public List<Direction> supportedDirections()
Add WEB_HOOK to dynamic.mapping.connector.core.client.ConnectorType
This issues sketches the required changes to address a web-hook for to send mapped payload to external custom endpoints.
This was requested in #303.
We plan to create a new connector WebHook, e.g.
dynamic.mapping.connector.http.WebHook
and leave the existing Http Connector unchanged. The web-hook is only for outbound and has custom properties, whereas the already existing http Connector is a singleton and only has one property.The custom properties of the web-hook could be:
https://myServer.com:8001/webHook
Payload will be the mapped payload.
Possible properties in the web-hook could be specified in the code as follows:
Tasks backend
dynamic.mapping.connector.http.WebHook
public boolean supportsOutbound()
indynamic.mapping.connector.core.client.AConnectorClient
topublic List<Direction> supportedDirections()
WEB_HOOK
todynamic.mapping.connector.core.client.ConnectorType
The text was updated successfully, but these errors were encountered: