Task 4: (Optional) Run your decision service through IBM API Connect
You create an OpenAPI file of your decision service, and then run it from API Connect.
Before you begin
About this task
You run your decision service in API Connect. You generate an OpenAPI file of the decision service, and then import the file into API Connect and run it.
Step 1: Generating the OpenAPI file
About this task
Procedure
- In the Navigator pane of the Explorer tab in Rule Execution Server, expand the RuleApps.
- Expand /PreTradeChecksRuleApp/1.0, and click PreTradeChecks/1.0.
- In the Ruleset View, click Retrieve HTDS Description File.
- Select REST as the service protocol type.
- Select OpenAPI - YAML as the format for the file. (Optionally, you can use the JSON format.)
- Select Latest ruleset version and Latest RuleApp version to generate a file for the latest versions.
- Select Proxy for API Connect to add a proxy that API Connect can use to
call the decision service.

- Click Download. The Rule Execution Server console generates an OpenAPI - YAML file of your decision service. Save the file to your computer so that you can easily find it in the next step.
Step 2: Importing the OpenAPI file into API Connect
About this task
Procedure
- Download and install API Designer for IBM API Connect, or use it on IBM Bluemix.
- Open API Designer.
- In the APIs tab, click .
- Click .
- Navigate to the file that you downloaded in step 1, and then click Open.
- Click Import. You see information for the imported file.

- Optional: Browse through the sections to look at the parameters for your service in API connect.
- Open the Assemble tab to see the policy assembly.
- Click Cancel if you made any changes. You can now use your decision service from API Connect.
Step 3: Running your decision service from API Connect
About this task
You run your decision service from API Connect.
Note: These steps work with API Connect 5.0, and might change in future releases.


