Skip to main content
Version: Current

OpenAPI Enricher

Mode: Streaming Mode: Request-Response

Description

OpenAPI Enricher is a particular type of enricher which uses Open API standard for inter-systems commmunication. It is autogenerated by Nussknacker based on the OpenAPI interface definition. You need to configure OpenAPI integration to have this component available in the Component Palette.

note

In this documentation, record is a neutral term used across all processing modes.
In purely streaming contexts, we typically use term event - that simply means a record with a timestamp, which lets Nussknacker apply time-based processing logic.

Parameters and configuration

NameDescription
OperationIdId of the OpenAPI operation, as defined in the interface definition
Input parametersAn entry field for each of the operation's input parameters. Nussknacker validates the data type of each entry field against the OpenAPI interface definition.
Output variable nameThis variable will contain the result of OpenAPI service call

Advanced parameters

NameDescription
Error StrategyDefines how OpenAPI call errors are handled. Fail on error (default) fails node execution. Return error returns a wrapped result in the output variable.

Error handling output

When Error Strategy is set to Return error, the output variable is a record with:

FieldDescription
errortrue for failed call, false for successful call
errorResponseError description for failed call
successResponseOpenAPI response for successful call
statusCodeOptional HTTP status code for successful and failed calls (present when available)

statusCode can be empty in some failure cases, when the underlying exception does not expose an HTTP status.