CentraSite Documentation : Runtime Governance with CentraSite : Run-Time Governance Reference : Built-In Run-Time Actions Reference for APIs : Run-Time Actions Reference : Set Media Type
Set Media Type
This action specifies the content type for a REST request or response. You would need to configure the Set Media Type action to:
*Specify the content type for a REST request received from a client. If the content type header is missing in a client request sent to an API, Mediator adds the content type specified here before sending the request to the native API.
*Specify the content type for a REST response (both for a REST API and SOAP API exposed as REST) before sending the response to the client. If a native API response (both for a REST API and SOAP API exposed as REST) does not contain a content type header, Mediator adds the content type specified here before sending the response to the client.
Note:  
This action is applicable only if the action Enable REST Support is set for a SOAP API.
Input Parameters
Media Type
String. The content type header that CentraSite would use to send the REST request or response.
Examples for content types: application/json, application/xml
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback