Enabling the RunTime Access to OpenAPI Specification
Accessing an OpenAPI specification for a TIBCO BusinessEvents application at run time requires the setting of some properties.
- To access an OpenAPI specification over a server URL at run time, in the
be-engine.trafile located atBE_HOME/binor in the project CDD file, set the following server property:Field Description be.engine.api.spec.enableSet to true to enable the HTTP channel to generate and serve the OpenAPI specification at run time.
By default, it is
false. - This step is required if you start the TIBCO BusinessEvents engine from TIBCO BusinessEvents Studio for accessing a runtime specification.
In TIBCO BusinessEvents Studio, set the
be.engine.api.spec.enableserver property in either of the following ways:- In the Run Configurations window, provide the start up property file, see Adding and Working with Launch (Debug or Run) Configurations.
In the project CDD file, add the server property in the Properties section on the Cluster tab.
- To access an OpenAPI specification on a SwaggerUI, in the
be-engine.trafile located atBE_HOME/binor in the project CDD file, set the following properties:Field Description be.engine.openapi.versionSpecify the correct OpenAPI version. The OpenAPI version must match the value
3.0.nto access the specification on a SwaggerUI page, for example3.0.0.The default value is
3.1.0.be.channel.http.propertiesAsXMLSet to true to include event properties as XML or JSON in the response when replying to an HTTP request event.
The default values is
false.be.http.json.rootElement.ignoreSet to true to exclude the root element and its attributes for event with JSON payload.
The default values is
false.
For accessing the OpenAPI specification of your TIBCO BusinessEvents application at run time, see Accessing OpenAPI Specification at Run Time.