Configuring Endpoint Call Processing
Procedure
-
Sign in to the Boomi Cloud API Management (Control Center) dashboard.
-
Click API Definitions on the Get Started page or navigate to Design > APIs.
-
On the Manage your APIs with API Definitions page, in the Name column, select the API Definition link from the list. This opens the Endpoint Settings:
<your endpoint name>page. -
On the Endpoint:
<your endpoint name>page, in the Name column, select an endpoint link or settings icon next to the row you want to configure endpoint settings. -
Navigate to Call Transformations. On the Call Transformations page, specify the following information in these fields:
-
Processing Adapter:
com.mashery.proxy.customer.generic.api-policy-connectorJSONPath Configuration:
-
Perform Pre-processing: Enabled
-
Data to make available for pre-processing: Enter the following data one per line:
Data Example Notes Policies: [[Policy 1, Policy2], [Policy 3]]Policies: [ [{ "Name": "Match", "Operation": "JsonPath", "ArgumentLocation": "${request.payload}", "Context": "Request", "MatchExpression": ["$.SearchRequest.api\_key"] }] ]This is a required field.
-
Perform Post-processing: Enabled
-
Data to make available for post-processing: Enter the following data one per line:
Data Example Notes Policies: [[Policy 1, Policy2], [Policy 3]]Policies: [{ "Name": "Match", "Operation": "JsonPath", "ArgumentLocation": "${response.payload}", "Context ": "Response ", "MatchExpression ": ["$..book[0].title "] }]This is a required field.
XPath Configuration:
-
Perform Pre-processing: Enabled
-
Data to make available for pre-processing: Enter the following data one per line:
Data Example Notes Policies: [[Policy 1, Policy2], [Policy 3]]Policies: [ [{ "Name": "Match", "Operation": "XPath", "Context": "Request", "ArgumentLocation": "${request.payload}", "MatchExpression": ["/employees/employee[@id=1]/firstName/text()"] }] ]This is a required field.
-
Perform Post-processing: Enabled
-
Data to make available for post-processing: Enter the following data one per line:
Data Example Notes Policies: [[Policy 1, Policy2], [Policy 3]]Policies: [ [{ "Name": "Match", "Operation": "XPath", "Context": "Response", "ArgumentLocation": "${response.payload}", "MatchExpression": ["/employees/employee[@id=2]/firstName/text()"] }] ]This is a required field.
-
-
-
Click Save.