Inject Model Attribute Headers Connector Configuration Values
Configuration Values
The following configuration values can be defined while configuring Inject Model Attribute Headers Connector on the Call Transformation page:
| Field name | Type | Field Value | Required/Optional | Description |
|---|---|---|---|---|
| Processing Adapter | String | com.mashery.proxy.customer.generic.inject-modelattribute-header-connector | Required | Adapter used to inject model attributes into HTTP headers. |
| Perform Pre-processing | Boolean | Enabled / Disabled | When enabled, injects headers before the request is forwarded to the backend. | |
| Data to make available for pre-processing (PreInput Value) | Map | params: {"<header-name>":"<model.fieldname>"} | Optional | Supported model attributes: - Plans (standard): - Packages (standard): - Applications (standard): - Applications (EAV): |
| Perform Post-processing | Boolean | Enabled / Disabled | - | When enabled, injects headers after the backend response is received. |
| Data to make available for post-processing (PostInput Value) | Map | params: {"<header-name>":"<model.fieldname>"} | Optional | Supported model attributes: - Applications (standard): - Applications (EAV): |
Examples
Data to make available for pre-processing
The following is an example value for Data to make available for pre-processing field.
params:{
"X-Mashery-Plan":"plans.name",
"X-Mashery-Package-ID":"plans.package_id",
"X-Mashery-Package":"packages.name",
"X-Mashery-Application":"applications.name",
"X-Mso-Partner":"applications.partner"
}
Data to make available for post-processing
The following is an example value for Data to make available for post-processing field.
params:{
"system":"applications.name",
"SchemaVersion":"applications.SchemaVersion"
}
Configuration Steps
Refer to the Configuring Call Transformation for an Endpoint for more information on the configuration steps.